The global artificial intelligence boom that has helped sustain Chinese economic momentum this year still can’t offset its domestic woes, particularly in its stock market.