It is an open, yet officially unstated, policy of the Indian government since the 1950s that the USSR/Russia must never be put in a position wherein it fully tilts towards China.
India, China and Russia are the three powers on the Asian continent. A 2v1 situation would be catastrophic for India. Sensible people in power in the West may not agree with the India, but they understand this. Arm chair generals on social media and those writing for Western media outlets do not.
There's a lot of nuance to geopolitics, clearly!
India is also a massive importer of energy. 30% above the price cap is still cheaper than market.
On dividing Beijing and Moscow, I think the ship has sailed. Russia is increasingly dependent on China. The leadership in Moscow is beholden to Xi in a way that has no historic comparison. If China initiated military action against India, Russia is no longer in a position to say no.