"Capitalism" doesn't make any decisions. It's emergent behavior. People make all kinds of decisions and bets and tradeoffs, some of which work better than others and "win".
That doesn't mean we always like those outcomes, hence the need for regulations, social safety net, etc.
Overall, it's a pretty shitty system, since it means that some people are always losing, but it also seems to be the best we've got.