The argument against cans is generally that they have more headspace and therefore harder to purge than bottles, but decent caning lines get around this by purging the whole line.
Bottles used to taste better as they would have live, unpasteurized beer in them. The yeast in the bottle consumes the oxygen which means the beer stays fresh.
The downside of bottles is they let light in giving lightstruck (Skunked) beer. This is a weird one because Corona, Sol, etc have made an entire industry selling people ‘premium’ beer to the point where people now think this is what beer is supposed to taste like.
You should never drink any beer from a bottle/can though,
1) it’s too fizzy
2) you miss out on the aroma which impacts your perception of taste, which is why most people will tell you beer tastes nicer from a keg, it’s the same beer as the can/bottle but it’s in a glass. Cask is a different matter, but that’s not lager.