Nvidia and Micron are both benefiting from artificial intelligence (AI) spending.