I once knew of a donut shop that would throw all the day-olds out in one big clear bag at a specific time of day and we kind of knew the owner. In other words they were making sure it would still be edible. There were only a couple of times we were there for it when times were tough.
We didn’t make a habit of it or anything though.
We would wait until it was nearly closing time at a local Dunkin’ Donuts, then go in and buy one donut; they’d give us four in a bag because they would just be thrown in the trash otherwise...