Microsoft vs. Amazon: Which AI Stock Is a Better Buy?

Source The Motley Fool

Key Points

  • Microsoft's commercial backlog is soaring, but one company accounts for a significant portion of it.

  • Amazon's cloud computing segment's growth rate is accelerating, fueled by surging AI demand.

  • One company's business model looks more resilient in an era of AI.

  • 10 stocks we like better than Amazon ›

Many software and technology stocks have taken a beating in early 2026. As investors reassess the massive capital expenditures required for artificial intelligence (AI) infrastructure, they are punishing companies that carry premium valuations and heavy investment cycles. Shares of Microsoft (NASDAQ: MSFT) have fallen about 17% year to date as of this writing. And Amazon (NASDAQ: AMZN) stock has also been slammed, declining more than 9% over the same period.

Interestingly, however, both companies' quarterly updates this year showed impressive growth. And, if anything, AI seemed to be a tailwind for both businesses -- not a headwind. So, is this a buying opportunity? And, if it is, which of the two stocks is a better buy?

Will AI create the world's first trillionaire? Our team just released a report on the one little-known company, called an "Indispensable Monopoly" providing the critical technology Nvidia and Intel both need. Continue »

A golden bull looking at a stock chart on a laptop.

Image source: Getty Images.

Microsoft: massive demand and massive costs

Microsoft's underlying business is still putting up spectacular numbers. In its fiscal second quarter, the software giant's revenue rose 17% year over year. This growth was largely driven by its intelligent cloud segment, where "Azure and other cloud services" revenue climbed 39% during the period.

But the most telling signal of AI demand is the company's backlog.

Microsoft's commercial remaining performance obligations (RPO) -- the dollar value of contracted commercial work not yet recognized as revenue -- hit $625 billion in fiscal Q2.

That figure represents a 110% year-over-year increase.

There are, however, a few reasons for investors to be cautious.

First, 45% of Microsoft's commercial backlog comes from a single customer: OpenAI. This creates a significant customer concentration risk for a business of this scale.

Second, securing this growth is proving incredibly expensive. Microsoft's fiscal second-quarter capital expenditures were $37.5 billion -- up 66% year over year. This is a massive absolute outlay that will eventually show up as depreciation and could weigh on margins over time.

Amazon: an accelerating cloud engine

Amazon is also spending heavily. Management anticipates capital expenditures of about $200 billion in 2026.

"With such strong demand for our existing offerings and seminal opportunities like AI, chips, robotics, and low earth orbit satellites," Amazon CEO Andy Jassy explained in the company's fourth-quarter earnings release, "we expect to invest about $200 billion in capital expenditures across Amazon in 2026, and anticipate strong long-term return on invested capital."

But unlike Microsoft, Amazon is already seeing its cloud growth rate accelerate. Amazon Web Services (AWS) -- the company's cloud-computing business -- saw revenue rise 24% year over year in the fourth quarter to $35.6 billion. That pace is notably up from 20% growth in the prior quarter.

And this top-line momentum is flowing through to the bottom line. Amazon reported fourth-quarter operating income of $25.0 billion, up from $21.2 billion a year earlier.

Beyond the cloud, the company's sprawling e-commerce operation and a fast-growing advertising business also enhance the business, helping push overall net sales up 14% year over year to $213.4 billion.

Further, Amazon's approach to AI hardware could also be a long-term advantage. The company is aggressively scaling its custom silicon to lower customer costs (a very Amazon-like thing to do). Combining its Trainium and Graviton chips, Amazon now boasts a chip business with an annual revenue run rate of over $10 billion.

The better buy

To me, Amazon looks like the clear winner when comparing the two.

Both stocks trade at similar valuations. As of this writing, Amazon's price-to-earnings ratio is about 29, while Microsoft sits at about 25.

But one business's profit margins are arguably more resilient over the long haul.

Software investors are accustomed to Microsoft's sky-high profit margins. If the AI era turns cloud computing into a capital-intensive race to the bottom on price, Microsoft has a long way to fall. Its valuation leaves little room for error if those heavy infrastructure investments begin to erode profitability.

Amazon, on the other hand, operates with a retailer's mindset. It is inherently a lower-margin, high-volume operator whose business model is structurally built to endure pricing pressure. The company is already focused on driving down the cost of AI compute, making it well-positioned to compete on price without breaking its economic model. With AWS accelerating and a proven tolerance for capital-intensive growth, I believe Amazon stock offers investors a safer risk-reward trade-off today.

Should you buy stock in Amazon right now?

Before you buy stock in Amazon, 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 Amazon 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 $511,735!* 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,140,464!*

Now, it’s worth noting Stock Advisor’s total average return is 946% — a market-crushing outperformance compared to 191% 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 March 13, 2026.

Daniel Sparks and his clients have no position in any of the stocks mentioned. The Motley Fool has positions in and recommends Amazon and Microsoft. The Motley Fool has a disclosure policy.

Disclaimer: For information purposes only. Past performance is not indicative of future results.
placeholder
Ethereum (ETH) Price Closes Above $3,900 — Is a New All-Time High Possible Before 2024 Ends?Once again, the price of Ethereum (ETH) has risen above $3,900. This bounce has hinted at a further price increase for the altcoin before the end of the year.
Author  Beincrypto
Dec 17, 2024
Once again, the price of Ethereum (ETH) has risen above $3,900. This bounce has hinted at a further price increase for the altcoin before the end of the year.
placeholder
Pi Network Price Annual Forecast: PI Heads Into a Volatile 2026 as Utility Questions Collide With Big UnlocksPi Network heads into 2026 after a 90%+ 2025 drawdown from $3.00, with 17.5 million KYC users and a smart-contract-focused Stellar v23 upgrade offering upside potential, but 1.21 billion tokens unlocking and heavy exchange deposits (437 million PI) keeping supply pressure and trust risks firmly in focus.
Author  Mitrade
Dec 19, 2025
Pi Network heads into 2026 after a 90%+ 2025 drawdown from $3.00, with 17.5 million KYC users and a smart-contract-focused Stellar v23 upgrade offering upside potential, but 1.21 billion tokens unlocking and heavy exchange deposits (437 million PI) keeping supply pressure and trust risks firmly in focus.
placeholder
Markets in 2026: Will gold, Bitcoin, and the U.S. dollar make history again? — These are how leading institutions thinkAfter a turbulent 2025, what lies ahead for commodities, forex, and cryptocurrency markets in 2026?
Author  Insights
Dec 25, 2025
After a turbulent 2025, what lies ahead for commodities, forex, and cryptocurrency markets in 2026?
placeholder
ECB Policy Outlook for 2026: What It Could Mean for the Euro’s Next MoveWith the ECB likely holding rates steady at 2.15% and the Fed potentially extending cuts into 2026, EUR/USD may test 1.20 if Eurozone growth proves resilient, but weaker growth and an ECB pivot could pull the pair back toward 1.13 and potentially 1.10.
Author  Mitrade
Dec 26, 2025
With the ECB likely holding rates steady at 2.15% and the Fed potentially extending cuts into 2026, EUR/USD may test 1.20 if Eurozone growth proves resilient, but weaker growth and an ECB pivot could pull the pair back toward 1.13 and potentially 1.10.
placeholder
Gold weakens as inflation concerns lift US bond yields and USD; downside remains cushionedGold (XAU/USD) trades with a negative bias for the second consecutive day on Thursday, though it lacks follow-through selling and stalls the intraday slide near the $5,125 area.
Author  FXStreet
Yesterday 06: 01
Gold (XAU/USD) trades with a negative bias for the second consecutive day on Thursday, though it lacks follow-through selling and stalls the intraday slide near the $5,125 area.
goTop
quote