India was ahead of China until the 1980s. The only advantage China had was a somewhat better military industry. In every economic metric related to development, India was ahead. But now, China's GDP per capita is 5 times of India, and you can't really compare the technological capabilities of these two countries.India is about 20 years behind China. China wasn't that relevant in cutting edge technology R&D 20 years ago, either. It's just not at the same stage of development, which is an all of society problem that IT out sourcing can't solve. The top talent from India do not stay in India. They certainly don't work for Indian companies.
This is the reason I don't understand why people are so bullish about India surpassing China. If they were advantageous why they couldn't grow like China between 1980 and 2020?