you gotta give people food and shelter, give them the resources they need to solve the problem you want solved, and leave them the fuck alone until they solve it. that's the only thing that's ever worked and it's the only thing that will ever work. and what we've done instead is build a hyper-optimized society-scale machine that pushes the people who do the actual work into precarity to juice a number that doesn't matter and said "eh, supply and demand will sort it all out."
even if you take economics seriously (and you shouldn't), the only thing its own principles actually tell you competition will optimize is commodity prices. do that if you want but if you want literally anything else to work you really need to put it in the hands of humans who have the means and motive to make it work properly, because otherwise what you get is an entire economy that's just amazon
you can design an economy to facilitate the solving of people's material problems, or you can design it to facilitate the accumulation of wealth. economics as it is practiced is not a science but a body of propaganda whose aim is to convince the general public that these two design goals are not manifestly at odds with one another.