It can be both in different ways. You're stuck in either or thinking.
And keep in mind, capitalism (when working properly) is supposed to find minima. Not create further barriers to getting things done. The group that gets the job done at the highest output:input ratio for as long as the problem they are solving is relevant was the intended optimization point. Irrational markets being what they are, this frequently does not converge as planned.