You can take them home to add to your compost bin. Then you can put this excellent and free compost in your garden.
Just because there is even more out there to miss out on doesn’t make missing out on bananas less of an issue.
I assume you can just stop to eat altogether, because you’re not consuming the vast majority of food out there.
I don't have to try "the vast majority" of other stuff to enjoy the banana.
Ideally, it's better not to overproduce and overbuy. But I'm suggesting making the best of a situation where the bananas can either go to the landfill or still be of some use.