> The market is profoundly irrational at allocating resources to meet human need.
The market in places like France is deeply distorted by misguided government policies, many of them a product of simple corruption and misguided thinking, and not any serious attempt to remedy any market failure or promote social goals. It is "irrational" indeed, but not in the way you assume. This explains why there's so much structural unemployment and wasted and unused capital there, as you point out.
Sometimes though pieces of equipment are just uneconomic given the surrounding business environment; "the market" cannot arbitrarily decide to make them profitable. Either people decide to change that business environment for the better, or some expenses will have to be written off and the business will need to move on. This shouln't be a "condemnation" of capitalism, it's a critical part of the system. Mistakes are normal, but they need to be acknowledged, and not stick around as zombies.
With a democratically run economy, we will fully utilize the entire working population while cutting individuals some slack by reducing working hours, increasing safety, and ensuring pensions will be kept. We will do away with the unelected oligarchy that rules this planet.