Capitalism is the cause of poverty, not what ends it. If you look at the last decade, global poverty outside China has increased. Only within China has it decreased, for now by enough to offset the rest of the world.
The problem is the constant expansion (which comes with warfare and extreme waste) that capitalism mandates.
It allows limited forms of private property and profit seeking in order to develop the productive forces. It’s a way to avoid invasion or sanctions by the US while keeping the working class in control of the state.
China doesn’t extract profits through the export of capital at usury rates from other countries at gunpoint, though. It is not imperialist.
China allows sweatshops that work people to suicide. CCP has nothing to do with the working class, it developed it's own bureaucratic class. Chairman Xi hasn't worked a day outside power structures as he was born to a bigwig. China does extract profits through usury, most of Africa is proof to that. It also buys up Western countries through universities and politicians. There's no honest way to look at it as anything else than an autocratic empire.
China is a poor country that was forced to accept some level of exploitation to avoid invasion or blockade. Thankfully the working conditions have been improving steadily and many of the exploitative practices by foreign companies are now banned.
Most CPC members are working class, especially in the leadership. They’re almost 10% of the population, of course they’d be a typical sample.
China offers loans for development with mutual gain, not extraction of profits. Even just comparing interest rates to the IMF is telling, let alone the many loans forgiven. Talk to some Africans affected by the Belt and Road Initiative, they’re overwhelmingly in favour.
The problem is the constant expansion (which comes with warfare and extreme waste) that capitalism mandates.