The difference is that China has the complete chain, from the raw materials, processing of said materials, manufacturing, integration, maintenance. They have the IP and know-how. India may have the land and the sun, but it lacks the hard parts.
India can just buy the panels from China and be in nearly the same position, because India has a much better solar profile.
If Greenland was a solar panel production powerhouse, they would never be able to compete with someone like India for solar energy generation...
China has a decent profile, but India's is significantly better.
Can it though? This will be impossible because of Indian domestic politics. You will also never get the same benefits by buying as in producing them yourself.