India's stock market is losing its emerging market crown as artificial intelligence reshapes global investment flows.