So the seller ends up having to take the loss?
With these returned items, the seller just loses money and has a lower income than if they could resell them.
Their tax goes down because of returns, but that's just normal income tax because their income goes down.
If they didn't donate the goods, just threw them away, they would pay exactly the same tax. So there is no tax benefit gained from donating.