There would also be less food waste if the stores just, you know, gave away the products about to spoil to people who, you know, aren't rich enough to be picky about their bananas.
That does happen with bread at least. I grew up in a place where shopping at the "canned food store" and "bread store" was common. These were places that sold food that had expired off the shelves of other stores at steep discounts. Sometimes the food was just given away by grocery stores, too.