what are the pros and cons of apt vs flatpak?

target OS is debian or linux mint