The International Monetary Fund noted a growing divergence between countries benefiting from artificial intelligence and those bypassed by it.