Capitalism is only the most efficient way of doing things
on transaction boundaries in competitive markets. Anything that doesn't have a priced transaction between firms doesn't count, because there's no way to do an end-run around inefficient power structures and replace them.
For example, nobody would think that the current agro-transportation-healthcare system where we make everybody fat with subsidized high-fructose corn syrup, ensure they don't get enough exercise, and then spend massive quantities of money fixing all the obesity-related illnesses is efficient. Nobody thinks the housing stranglehold where home prices get bid up, investors and people who bought them early buy more of them on leverage, and other people go homeless is efficient. Nobody thinks modern enterprise software is efficient.
But these systems are held in place because there's essentially no lever to topple them. The economically rational response to a housing shortage is to build more housing, but if you pick up a hammer and do it yourself, you will get shut down so quickly by the local planning commission and building inspector. Corn subsidies and local zoning are held in place by the government; various people have tried to change them, but democratic government by design moves slowly. It would be a big (and expensive) lifestyle change to cook all your meals at home from fresh ingredients and walk everywhere - people that actually do it tend to be significantly healthier than those who don't, but it requires an economic & free time surplus. Building enterprise software with a good UI is an expensive and pointless waste of time, because the decision maker who decides whether to buy your software usually cares about price, how easy it is for IT to manage, and whether they can blame another company when things go wrong. Hence why we get dumpster fires like Concur.
It's very likely that remote work will end up in a similar situation. The decision-maker for whether your job is remote isn't the employee; it's the employer, sometimes your manager and sometimes someone higher up in the org like a VP or HR. They optimize for their own incentives, which usually includes how easy it is to manage people. For the economically-rational result to happen, remote workers need to be able to start independent firms that are remote-first, so they can do an end-run around their managers. But for that to happen, remote work needs to be more efficient in the competitive, early stages of a new technology market, so that those remote-first companies win the market when it is still winnable. I'm not convinced that's possible; I think in-person work is still significantly more efficient in a highly-ambiguous environment where people don't have well-defined tasks to do, and that's exactly the environment where most companies get founded.