I'm being serious, and I do this when possible. My non-gardening relatives will sometimes even drop off a pile of unusable produce for such purposes when visiting.
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.