I think if a war were to break out between India and China, then China would have more to lose than gain, they would suffer from the same issue that Russia is facing in its invasion of Ukraine.
I say this by looking at the on going Russo-Ukrainian war, the conflict between Russia and Ukraine started in late February of 2022 and going on till now, it's been nearly two years now. The Russo-Ukrainian conflict will go on for another three years or more. Both sides are giving their best and neither seems to want to back down at this point, Russia would not want to retreat back now, they have sacrificed thousands of men, hundreds of aircrafts, battle tanks, dozens of ships till now, they will want negotiate for something, now what would that be? I don't know.
What is the strength ratio of Ukrainian army to Russian army? I believe it's 1:10. The Russian military is far more stronger, more advanced and larger in overall size in comparison to the Ukrainian military. Till now the Ukrainian military is fighting back against Russia and I think Russia has learnt a lesson in Ukraine that they will never forget.
How what the ratio of the military strength of India and China? I believe it's around 2:3. Let's take 2:3. China is ahead of India as it has a larger Navy, larger airforce, larger land based army and overall more advanced technology on its side, I think the Indian side is more experienced and battle hardened. I think if China is the aggressor and pulls off a shock and awe type of campaign against India and tries to push into Indian territory then it will end very badly for them. This is what I say, if Indian military is the aggressor and we ingress into China, we will be the losers and if China does the same, they will be the losers. Now some people expect a war between China and Taiwan, if that happens, we will have to see how the conflict plays out.