Theorists of capitalism long argued that it and it alone could efficiently distribute resources across an economy (though not, oddly, within a firm).
This might be true in an economy whose rules about contrantracts, commerce, and property relations were fixed and predictable, but most economic simulations overlook or sidestep the fact that the most powerful economic incumbents can and do adjust the legal conditions to maximize their own gain.