> Capitalists claim that this is optimal.

Because that does not happen exactly as you say for all players. The demand signals will be processed and long-term risk is balanced against short-term gain in a distributed fashion, so not everyone will do the same.

Sufficient diversity of response will only appear when there are enough competitors. When there are only a few, it doesn't necessarily work out.