Now, if the damaged one is a little bit cheaper, you'll probably have a greater chance of accepting the product with cosmetic damage over the more expensive, "perfect" product.
But then I realized people would just start damaging them themselves, in order to get the discount.
And even apart from illness, a badly dented box of (e.g.) corn flakes might well contain more than the usual amount of cereal crushed into dust. Rough handling can impact the quality of a lot of foods.
So I don't want to cheer for waste, but I don't think it's fair to write off this heuristic as completely irrational, either.
Even for products that get wear and tear through normal usage, it's somehow better if we're the ones who do that wear and tear.
Eg, say you're at a book shop buying a paperback. If there are multiple copies you'll choose the one with the crispest cover and cleanest pages. Even though it'll get bent up and dirtied as you read it yourself anyway.