Yes, true. But the real underlying reason is Indian arrogance.
Some would argue that ASEAN countries do the same. For example, Singapore always tries to strike a balance between the West and China. It never fully commits to either side. But there is a big difference, Singapore and the other ASEAN countries (except Malaysia and Brunei) practice Realpolitik. They know they need both the West and China, so they try to please them both for their own benefit. It keeps them out of sticky situations, and they get the best of both worlds.
But India, oh... India. India is just so clueless about Realpolitik. India demands other countries to please it first. Because India is Superpowah! India rejects Chinese businesses to "teach China a lesson". But when Western businesses wanted to come in, there's Atmanirbhar Bharat. India expects Russia to offer its top arms for sale, but at the same time, wants to buy less Russian arms for more Atmanirbhar Bharat. India wants other countries to open up their economies more to India, yet at the same time, India imposes import tariffs and restrictions. India is just so fond of one-way deals. It wants the cake and eat it too. This is a total lack of understanding of Realpolitik and making deals. Its plain arrogance + stupidity. This is why India can never truly grow up.