Took me a while to get up the nerve to do this. I always thought it was so wasteful, until I gained the awareness of how much effort it took my body to properly "dispose" of a poor quality fruit or vegetable.
My body was much less efficient at making use of the excess nitrogen than the compost pile.
Spare the homeless, the food as well. You are not doing them any favors by giving this food to them.