Maybe Karl Marx had a point? Sure, communist revolutions of the 20th century produced suboptimal results, but only because violent psychopaths were in power. We need democratic socialism. Maybe Bernie Sanders has right ideas.
The flipside is that markets are only efficient at distributing things that can have a price on them. They're mostly blind to externalities (pollution!) and to problems that can't be solved by distributing the goods most efficiently.
This is why both pure command (Communist) and pure market (Capitalist) solutions fail. You need to decide which system is best for each problem and use the one that works. Consumer goods are absolutely best handled by markets. Healthcare is far more efficient in a command system, because the demand curve is a total mess so markets can't price it efficiently. Utilities are another example where markets are typically worse.