But I will say, in a very broad stroke, we’re heading for a great power conflict and the US has two primary factions on foreign policy; the primacists vs the restrainers, both want to take on China (contain with war) but the primicits want to topple Iran first and set up Israel as a regional hegemony where the restrainers want to build up locally first. China knows this and Russia is a junior partner / quasi vassal state to China. China lacks modern war fighting experience which the Russian Ukraine war has been very helpful in fixing. Yes it’s very expensive, but so is losing a great powers conflict.
While it is undoubtedly true that china is learning everything it can from this conflict, and that russia is at least a little subservient to china, they aren't so subservient for this explanation to make sense.