Nvidia remains the chip leader for AI training and is well positioned for AI inference and agentic AI.
Micron has been riding the memory supercycle.
Artificial intelligence (AI) infrastructure stocks are still one of the biggest driving forces in the market. While Nvidia (NASDAQ: NVDA) helped lead the early charge, other stocks, like Micron (NASDAQ: MU), have greatly outperformed the AI leader over the past year.
Let's dive into both AI stocks to see which one looks set to outperform over the next five years.
Missed Nvidia in 2009? This Rare Signal Is Flashing Again. In 2009, a "Double Down" signal flashed for a little-known chipmaker called Nvidia. For the first time in years, that same "Total Conviction" signal is flashing for a company 1/100th the size of Nvidia. Continue »
Nvidia was the first big AI winner, and the advantages the company established remain in place today. Meanwhile, despite its massive size, the company continues to put up incredible growth. In Q2 2027, it more than doubled its revenue to a whopping $96.2 billion, with 117% growth in its data center segment. Meanwhile, it projected growth of 89% next quarter and 70% for fiscal 2028 (ending January 2028), while saying it remains capacity-constrained. In other words, it would be growing even faster if it could make more chips.
At the heart of Nvidia's growth story remains its graphics processing units (GPUs) and its CUDA software platform. Most early AI code was written using CUDA and optimized for its GPUs, which has given the company a wide moat in AI model training. That moat remains intact today, but the company is much more than just GPUs.
Today, Nvidia is a complete AI infrastructure company, offering full server racks designed for specific AI tasks, such as training, inference, and agentic AI. The company took a big leap in the inference market following its "acquisition" of Groq and its language processing units (LPUs). These chips, with a small amount of SRAM (static random-access memory) built in, can access memory quickly and reduce latency, making them great for the decode phase of inference, while its GPUs handle the more compute-heavy pre-fill phase. Meanwhile, it has also developed its own Arm-based central processing units (CPUs) specifically aimed at agentic AI. It then ties it all together with its powerful networking portfolio.
With Nvidia firmly established as the AI model training leader and well positioned for the fast-growing inference and agentic AI markets, this is a company that has a lot of growth in front of it over the next five years. Meanwhile, the stock is still attractively valued, trading at a forward price-to-earnings (P/E) ratio of 14 times analyst estimates for fiscal 2028 (ending January 2028).
Image source: The Motley Fool.
Micron has been riding the memory supercycle to astounding growth. The company saw its revenue last quarter surge to $41.5 billion from $9.3 billion a year ago, while its gross margin expanded to 84.6% from 37.7%. That led its adjusted earnings per share (EPS) to skyrocket from just $1.91 a year earlier to $25.11.
The revenue growth and margin expansion are coming from a huge supply-demand imbalance within the memory market. The company is one of the big three DRAM makers -- along with Korean companies SK Hynix and Samsung -- and derives around three-quarters of its revenue from DRAM and a quarter from NAND (flash). AI is driving memory demand, as GPUs are packaged with high bandwidth memory (HBM), a special form of DRAM that helps reduce latency and optimize performance, and AI training data is being stored in enormous solid state drives (SSDs) that use flash memory.
Rival SK Hynix has predicted that the DRAM market will remain supply-constrained through at least 2030, while Micron and its rivals have begun to lock in long-term contracts for up to five years for the first time ever. This should help reduce some of the extreme cyclicality the industry has seen in the past.
On a forward P/E basis, Micron looks very cheap, trading at only 6 times analyst estimates for fiscal 2027 (ending August 2027). The question is how long the memory cycle will last and whether there has been enough of a structural shift in the market to keep prices high.
I think the easy answer here is that Nvidia will outperform Micron over the next five years. Micron is still a cyclical stock until proven otherwise, and five years is a long time for a cycle to last. Meanwhile, Nvidia has built one of the most complete and powerful AI infrastructure companies on the planet, and the stock is very attractively valued given its growth and moat.
Before you buy stock in Nvidia, consider this:
The Motley Fool Stock Advisor analyst team just identified what they believe are the 10 best stocks for investors to buy now… and Nvidia wasn’t one of them. The 10 stocks that made the cut could produce monster returns in the coming years.
Consider when Netflix made this list on December 17, 2004... if you invested $1,000 at the time of our recommendation, you’d have $446,157!* Or when Nvidia made this list on April 15, 2005... if you invested $1,000 at the time of our recommendation, you’d have $1,377,357!*
Now, it’s worth noting Stock Advisor’s total average return is 983% — a market-crushing outperformance compared to 212% for the S&P 500. Don't miss the latest top 10 list, available with Stock Advisor, and join an investing community built by individual investors for individual investors.
See the 10 stocks »
*Stock Advisor returns as of September 4, 2026.
Geoffrey Seiler has no position in any of the stocks mentioned. The Motley Fool has positions in and recommends Arm Holdings, Micron Technology, and Nvidia. The Motley Fool has a disclosure policy.