AI is reshaping global stock market rankings, with Taiwan and South Korea surpassing Western peers. A deep dive into the winners and losers.