Two of these hyperscalers have developed their own custom AI chips and foundation models, and their shares trade at relatively reasonable valuations.
The company with the higher stock valuation now is the one that made some missteps in its AI strategy.
Amazon (NASDAQ: AMZN), Alphabet (NASDAQ: GOOGL) (NASDAQ: GOOG), and Microsoft (NASDAQ: MSFT) are all synonymous with the cutting edge of tech, and all have helped lead the way in the artificial intelligence (AI) trend. Consequently, they now incorporate AI in nearly every part of their businesses.
Amazon and Microsoft are the leaders in the cloud infrastructure space, with market shares of 28% and 20%, respectively, and their roles in cloud computing make them prominent in the AI field. By contrast, Alphabet (No. 3, with a 15% share) was an AI software pioneer and now leads the way with its Google Gemini AI engine and in autonomous driving through its Waymo subsidiary, which could meaningfully contribute to Alphabet's financials as soon as 2027.
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 »
However, only two of these stocks look like promising buys now. Investors should probably consider adding Amazon and Alphabet shares to their portfolios, but they should refrain from picking up Microsoft now. Here's why.
Image source: Getty Images.
Admittedly, all three may appear to be stocks to avoid when considering their capital expenditures. Amazon is on course to lay out $220 billion on capex in 2026 alone, and it recently raised its forecast by $20 billion due to rising memory prices. Alphabet is not far behind, with a $195 billion to $205 billion spending plan.
Considering that Microsoft allocated $175 billion for the same purpose, these three companies should account for almost $500 billion in capex this year.
These companies are among the wealthiest publicly traded companies in terms of liquidity. Nonetheless, they have each taken out tens of billions of dollars in loans to finance their AI infrastructure build-outs. Such an act would have seemed inconceivable a year ago, and assuming the spending does not bring the desired returns, even tech heavyweights like these three could face significant pain.
Fortunately, all these companies have benefited from accelerating revenue growth amid their investments. Thus, they have received early signs that these investments are paying off, likely prompting them to increase capex further.
Still, Alphabet and Amazon have powerful AI platforms, and both have developed their own silicon and foundation models to further their AI advancement. Alphabet has even managed to induce Apple to adopt its foundation models to power Apple Intelligence, so it may hold an advantage.
The Google parent has also maintained one attribute the other two hyperscalers have lost -- positive free cash flow. Despite its high capex, Alphabet generated $53 billion in free cash flow in the second quarter. This almost ensures that it can afford to keep making these investments.
Additionally, Alphabet is cheap, trading at a P/E ratio of just 17. That low valuation suggests room for growth and reduces its downside risk if its capex investments do not pan out.
Amazon is in nearly as strong a position. Its P/E ratio is 20, a level that would have been unthinkable a few years ago when investors bought its stock at P/E ratios above 50 (and sometimes over 100) without hesitation.
Still, its free cash flow recently turned negative, and fell to negative $7.6 billion over the trailing 12 months. This is notable for a company that routinely generated tens of billions of dollars in annual free cash flow in past years.
Interestingly, Microsoft has the strongest free cash flows of the three. It generated almost $67 billion in free cash flow in its fiscal 2026, which ended June 30.
However, it appears to lag its competitors when it comes to AI technology. It initially partnered with OpenAI. Although it looked poised to lead the industry for that reason, Microsoft's software did not necessarily benefit from OpenAI's innovations. Consequently, its Bing search engine has not taken much of the market away from Google Search, despite the impact of OpenAI's ChatGPT.
The company is now developing AI technology independently of OpenAI and continues to improve its Copilot AI engine. Nonetheless, both Google Gemini and Anthropic's Claude tend to outpace Copilot in popularity when outside of Microsoft's Windows environment.
Furthermore, Microsoft has a significantly higher valuation, trading at 27 times earnings. Unless it can catch up to its "Magnificent Seven" competitors, it is less likely that investors will continue to pay a premium for Microsoft stock.
Among these three stocks, Alphabet and Amazon are the ones that belong on investors' buy lists.
Admittedly, all three companies are spending staggering amounts on capex. Moreover, even though Microsoft may lag its competitors slightly, its stock is likely more of a hold than a sell.
However, Alphabet and Amazon stand out as leaders in specific niches of AI. When also considering their ability to handle massive capex demands and their reasonable valuations, investors will more than likely profit in the long run by owning those stocks.
Before you buy stock in Alphabet, 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 Alphabet 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 $417,413!* 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,341,294!*
Now, it’s worth noting Stock Advisor’s total average return is 950% — 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 13, 2026.
Will Healy has no position in any of the stocks mentioned. The Motley Fool has positions in and recommends Alphabet, Amazon, Apple, and Microsoft. The Motley Fool has a disclosure policy.