Maybe hot take in this age, but loot boxes for cosmetics aren't a problem when you can get cosmetics by just playing.
Valve games are even worse for this because Steam trading allows 3rd party sites to sell cosmetics directly for cash, and some of these cosmetics are worth tens of thousands of dollars. It's just children gambling money but with a thin veneer of video game over the top.
Gamblers will always find a way to gamble. I like getting cosmetics for free even if they are randomized. I don’t think I have ever bought keys to loot boxes, I just don’t see the point.