Currently we allocate most talent to unprofitable enterprises. Uber isn't profitable. DoorDash isn't. A lot of these companies will never turn a profit.
It says a lot about Western society that people only really feel incentivized to be a doctor or lawyer or engineer or coder if the money is right. Not about passion, or wanting to help people, or solve a particular societal problem. Just a bunch of individuals on a hedonistic treadmill making line go up.
There are tons of criticisms for the USSR and PRC, the two big examples that come to mind. But within living memory (my grandparents) both countries went from backwater agrarian feudal states to global superpowers. That amount of progress in so short of a timescale is dizzying to think about, and if we want to talk about the human cost of that progress (worthwhile) we should maybe recount the human cost for liberal representative democracy to reach where it is today.
How should labor be allocated? It's a great question. I think personally that having to sell your body to a capitalist in order to meet your basic needs is only a few polite steps removed from serfdom. When it's not regulated it clearly veers in that direction (scrip, company towns, etc.), and the only alternative is for you yourself to acquire/borrow capital and hope to enter the rent-seeking class. An alternative could be to simply meet people's basic needs without the fanfare. Let people work on solving real problems (climate change, carceral system, education, etc.) instead of optimizing ads and telemetry for the latest planned obsolence plastic box. We live in a post-scarcity society where food and clothes are destroyed so that the "underclass" can't at least enjoy the scraps.
"I am, somehow, less interested in the weight and convolutions of Einstein's brain than in the near certainty that people of equal talent have lived and died in cotton fields and sweatshops". - Stephen Jay Gould