For much of the last four years, semiconductor stocks have been some of the biggest beneficiaries of the artificial intelligence (AI) revolution. While Nvidia(NVDA+0.80%) has become the king of AI accelerators, Micron Technology(MU+7.60%) is capitalizing on unprecedented demand for memory chips.