Markets are great information processing mechanisms for allocation, but only if the information fed into them is correct. Capitalist property rules mean that price formation reflects distorted information inputs, like artificial scarcity and artificial abundance. GIGO.
let’s be honest, a big reason why markets are so bad at distributing resources is that these very same people that love the free market also do everything they can to make governments police the markets in favor of the rich.