The US dominates AI spending and computing power, but China is ahead in research and closing the gap on advanced models.