It really depends. A green bottle isn't going to shield the beer from light. Cans don't have that problem. But most beers aren't going to be in cans and bottles - especially in the same area to be able to buy both and do a taste test (which is what you should do to find your answer). A lot of breweries didn't, and still don't, do cans, and a minority of craft brews can be found that way. I've never had a problem with a canned beer.
If you're going off of watered down shit, yeah, I'd rather have Corona from a can than bottle because it shouldn't be skunky from the can. Same with Heineken.