Capitalism has lifted billions of people out of poverty.
However, capitalism is in itself an inherently broken system: because of the nature of capital, a perfectly capitalist society will approach a state where one actor owns everything, and everyone else owns nothing. As such, all countries practice a form of mediated capitalism: market functioning is limited by governmental action. Certain markets are not allowed to exist, while others are managed via regulation.
There is no inherent reason why capitalism cannot be adapted to preserve the utility of markets while simultaneously eliminating poverty.
The optimal state of capitalism is where resources are being allocated so perfectly, any changes would be a net negative to society