Even Lenin acknowledged that you can’t get rid of capitalism quickly, and China started from an even worse position than the USSR.
Empires competing and creating multipolarity benefits China, other socialist nations, and the imperial periphery looking to break free. Keep in mind that mao’s three worlds theory is a major influence on some socialist factions in China, even if it is reductionist. Russia maintaining strength to challenge the US(including if it comes through a defeat or truce in ukraine)(note that China is pushing for a truce which would maintain Russia’s ability to defend itself from NATO better, but supplying them to maintain their strength) is a good thing in their calculus, and I haven’t seen any compelling rebuttals to it.