Better (almost) $4 trillion AI stock to buy now: Microsoft or Alphabet

Both of these top tech companies have established leadership roles in the AI industry.

| More on:
Hand with AI in capital letters and AI-related digital icons.

Image source: Getty Images

You’re reading a free article with opinions that may differ from The Motley Fool’s Premium Investing Services. Become a Motley Fool member today to get instant access to our top analyst recommendations, in-depth research, investing resources, and more. Learn More

Key points

  • Microsoft stood out for its OpenAI investment and partnerships across the industry.
  • The emerging strength of Google Gemini has shown Alphabet can stay relevant in the AI race.

This article was originally published on Fool.com. All figures quoted in US dollars unless otherwise stated.

Both Microsoft (NASDAQ: MSFT) and Alphabet (NASDAQ: GOOGL) (NASDAQ: GOOG) continue to grow as they solidify their positions in the artificial intelligence (AI) industry. Amid a recent surge, Alphabet's market cap has reached almost $3.9 trillion, while Microsoft's has pulled back slightly to $3.6 trillion.

What's unusual is that the Google parent was substantially smaller than the software giant until recently, when Alphabet pulled ahead. Considering that surge by Alphabet, is it the better investment among multitrillion-dollar companies in the AI realm, or should investors stick with Microsoft?

The case for Microsoft

Microsoft has long been a leading cloud company, but it stood out in the AI race because early on it took what is now a 27% ownership stake in OpenAI. Thus, upon the release of GPT-4, that partnership appeared to put Microsoft stock in a strong position as the frenzy around generative AI began to take hold.

To this end, it has developed its own AI engine, called Copilot, which stands out within Microsoft's ecosystem. Still, Microsoft has likely drawn the most investor attention from its partnerships. Despite its OpenAI stake, both companies are free to partner with other AI companies. More recently, Microsoft made an agreement with Anthropic to scale Claude AI on Azure servers powered with Nvidia chips.

Microsoft can also afford such investments. Over the last 12 months, it generated almost $78 billion in free cash flow, and that does not include the $69 billion in capital expenditures (capex) invested over that time.

Moreover, with the earlier ties to OpenAI, Microsoft rose significantly in prior years, so year-to-date gains have slowed to about 14%. It also trades at a P/E ratio of 34, though it is not far above the S&P 500 average of 31. Ultimately, given its continued progress in AI, that slightly above-average valuation is unlikely to stop the steady rise of Microsoft stock.

Why investors might choose Alphabet

After ChatGPT came on the scene, investors began to question whether Alphabet's Google Search engine was on the way to obsolescence. Its AI-enabled queries bypassed the ads that have long been the source of most of Alphabet's income.

However, Alphabet launched Google Gemini to compete with ChatGPT. At first, it seemed like just another AI engine, but over the last few months, it has emerged as the site of choice for real-time information, video generation, and unstructured prompts thanks to the improvements in Gemini 3.

Additionally, even amid the skepticism, Alphabet's revenue grew, and it continued to generate massive free cash flows. This has funded Gemini's improvements, along with its other AI-related businesses, such as Google Cloud and the autonomous driving platform Waymo.

Furthermore, investors should expect continued improvements as the company plans to spend $91 billion to $93 billion on capex this year alone. Despite that spending, its free cash flow was just under $74 billion over the last 12 months, an indication it can afford these massive outlays.

Also, despite gaining around 70% so far this year, Alphabet stock trades at a 32 P/E ratio, close to the S&P 500 average. When one also factors in the increasing strength of its AI-related businesses, such conditions could make the Google parent an attractive choice.

Microsoft or Alphabet?

Both stocks have shown they are industry leaders in AI, and thus, it is likely that both stocks will continue moving higher. However, if you're choosing between the two, Alphabet likely holds the edge.

Indeed, investors should commend Microsoft for its early moves in AI and its ability to make itself essential to more than one major AI engine.

Still, both the stock price and valuation seem to already reflect that growth. Conversely, Alphabet investors may still benefit from a delayed reaction to the Google parent's AI.

Alphabet has spent more than Microsoft on capex, and it has overcome perceptions that AI was passing it by. When also considering its slightly lower valuation, Alphabet should remain in a stronger position to drive higher returns over time.

This article was originally published on Fool.com. All figures quoted in US dollars unless otherwise stated.

Will Healy has no position in any of the stocks mentioned.  The Motley Fool Australia's parent company Motley Fool Holdings Inc. has positions in and has recommended Alphabet, Microsoft, and Nvidia. The Motley Fool Australia's parent company Motley Fool Holdings Inc. has recommended the following options: long January 2026 $395 calls on Microsoft and short January 2026 $405 calls on Microsoft. The Motley Fool Australia has recommended Alphabet, Microsoft, and Nvidia. The Motley Fool has a disclosure policy. This article contains general investment advice only (under AFSL 400691). Authorised by Scott Phillips.

More on International Stock News

A woman looks questioning as she puts a coin into a piggy bank.
International Stock News

Should you buy this "Magnificent Seven" stock before 2026?

Alphabet remains one of the top growth stocks to buy.

Read more »

A young woman sits with her hand to her chin staring off to the side thinking about her investments.
International Stock News

Where will Nvidia stock be in 5 years?

Nvidia's success is tied to the spending plans of others.

Read more »

A woman sits at her computer with her chin resting on her hand as she contemplates her next potential investment.
International Stock News

Should you invest $1,000 in Alphabet right now?

This stock has surged 63% higher in 2025 and now sports a $3.7 trillion market cap.

Read more »

A white EV car and an electric vehicle pump with green highlighted swirls representing ASX lithium shares
International Stock News

If you had invested $5,000 in Tesla stock 1 year ago, here's how much you would have today

Tesla's stock has lagged the S&P 500.

Read more »

A woman sits at her computer with her hand to her mouth and a contemplative smile on her face as she reads about the performance of Allkem shares on her computer
International Stock News

A new leadership group is emerging at Berkshire Hathaway. Here are some changes that could be in store for Warren Buffett's massive holding company.

It's beginning to look like Berkshire Hathaway may do some things differently once Warren Buffett retires.

Read more »

AI written in blue on a digital chip.
International Stock News

Down 17% from recent highs, is Nvidia stock a buy?

The stock has become more attractive recently. But have shares fallen enough to make them a buy?

Read more »

Woman and man calculating a dividend yield.
International Stock News

As 2026 gets closer, Warren Buffett's warning is ringing loud and clear. Here are 3 things investors should do.

Investors should be prepared for all kinds of scenarios.

Read more »

A tech worker wearing a mask holds a computer chip.
International Stock News

Could Nvidia become the first $10 trillion company?

Nvidia got in early on the AI opportunity and built an empire.

Read more »