Nvidia has been caught in a tug-of-war between the US and China as the countries compete for AI dominance.