Capitalism is perfect system. The thing is that there's no real capitalism anywhere in the world.
What is the best sorting algorithm? Is it the one that sorts a random list in the shortest time? Or the one that uses the least memory? Most likely we'll pick by balancing a few important metrics, which leaves us with "optimal". Far from perfect.
If we're discussing Capitalism vs Socialism, instead of criticizing the opposition for ignorance (like every comment below the WashPo story), let's accept that different groups are optimizing for different goals. And there are so many competing objectives: efficient distribution of wealth, national economic growth, safety net for unlucky/disadvantaged, protecting shared resources (environment), etc etc etc.