Frankly speaking, India lags significantly behind China in various aspects and has a long way to go. China's rival is the United States, not India. This can be seen from the series of policies the U.S. has enacted against China in recent years.
The U.S. has shifted from underestimation to taking China seriously and with apprehension.