It's a somewhat blunt instrument used to internalize some externalities: Making a product and then destroying it is wasteful, and the market will fix all internalized costs of that waste, but some of those costs are externalized. Having society pay somewhat for producing clothes that are then worn, that's one thing. Having society pay for pointless waste is another.
What you've said is: Looking only at the internalized costs, pointless-wasting a percentage of clothes costs X but reduces clothes cost in the store by Y, with Y being larger than X.
Okay. Irrelevant - that math doesn't include externalized costs. It may well be that this is a stupid idea, but "market decided destroying some clothes was more efficient" doesn't prove anything unless you can show that the size of the externalized costs to this process are 0 or close enough to 0 to have no meaningful relevance.
Again, the waste is not pointless, it's part of an inventory management strategy to ensure adequate supply. If your local grocery store established a policy that they'll never buy more meat than they're sure they can sell before the expiration date, they'd routinely run out.
You could internalize the cost of waste more generically by charging appropriately for landfill use and letting producers decide how much it's worth avoiding waste. Instead of just banning a particular waste stream by a particular industry, with distortive consequences.