Alibaba has surged ahead in deal-making in 2024 compared to rivals Tencent Holdings Ltd. and Baidu Inc., both of which have also invested in multiple AI startups following the global excitement sparked by ChatGPT.