The point is not that lots of companies run around making things people don't want and go bankrupt.
The point is that's what would happen, and because of that, companies focus on making things people actually do want.
Look at what happened the Facebook stock over the last few years as they rebranded to Meta and started spending wildly. The market whipped them into shape, and rewarded them handsomely.
Very well, Sears Roebuck is an even better example then even if it did not file for bankruptcy because it went from cornerstone of US culture to practically "went out of business."
https://en.wikipedia.org/wiki/Bankruptcy_in_the_United_State...