The race for AI dominance often focuses on the United States and China, but other countries are key players—and winning depends on many factors.