Palantir's lofty valuation means shares could fall even more.
Microsoft stands out as a more diversified and conservatively valued option for investing in artificial intelligence (AI).
Palantir is a great business, but investors may be overpaying.
After a powerful run earlier in the year, the tech-heavy Nasdaq Composite (NASDAQINDEX: ^IXIC) has slipped from recent highs as investors reassess how much they are willing to pay for artificial intelligence (AI) beneficiaries. Spooked, some investors are seemingly rotating out of some of the most aggressive AI winners.
That nervousness is understandable. AI infrastructure spending has surged, and many AI-linked stocks have multiplied in value. Yet the current sell-off is also revealing a gap between truly attractive AI investments and those that may be overhyped.
Where to invest $1,000 right now? Our analyst team just revealed what they believe are the 10 best stocks to buy right now, when you join Stock Advisor. See the stocks »
For investors trying to sort opportunity from risk, Microsoft (NASDAQ: MSFT) and Palantir Technologies (NASDAQ: PLTR) illustrate that range. Microsoft looks like a credible way to lean into long-term AI demand during volatility, while Palantir will likely be far more exposed if AI spending or sentiment cools.
Image source: Getty Images.
Microsoft arguably sits at the center of the AI buildout. Benefiting from AI (and powering it) is the software giant's Azure cloud computing platform. Of course, the company is also using generative AI with its Copilot assistant across its productivity tools in Microsoft 365. Then there's its partnership with OpenAI.
Importantly, AI is already positively impacting the software giant's financial results, too. In Microsoft's first quarter of fiscal 2026, the company generated revenue of $77.7 billion, up 18% year over year. Microsoft Cloud revenue grew 26% year over year to $49.1 billion in the same period.
Revenue from its intelligent cloud segment climbed 28% year over year to $30.9 billion, aided by 40% growth in "Azure and other cloud services revenue."
The stock does not look cheap, but it is not euphoric either. Microsoft stock has a price-to-earnings ratio of 34 -- a premium to the broader market, yet one supported by high-teens revenue growth, rising earnings per share, and a balance sheet stacked with cash.
In my opinion, Microsoft stock is worth buying and holding for the long haul. It gives investors exposure to the AI boom without paying bubble-like prices.
Data analytics and software company Palantir has become one of the market's loudest AI beneficiaries, with its stock up more than 100% this year (even after a big pullback in recent weeks).
Investors love Palantir's growth. Third-quarter revenue rose 63% year over year to about $1.2 billion. This was a huge acceleration from 48% growth in the prior quarter.
Profitability looks good, too. The tech company reported a third-quarter generally accepted accounting principles (GAAP) profit of $476 million, or 40% of revenue.
Yet the stock's valuation leaves very little margin for disappointment. As of this writing, shares trade at about 165 times forward earnings. This is a bubble-like valuation.
Sure, this valuation level might be defensible in a world of limited competition and near-certain sustained hypergrowth. But reality looks less comfortable. Palantir faces well-funded rivals in analytics and AI platforms. Additionally, its heavy reliance on government contracts makes it susceptible to government spending shifts. With the stock already priced for exceptional results, any cooling in AI enthusiasm or slowdown in contract wins could ultimately hit the shares much harder than the underlying business, making this a risky place to hide during AI bubble scares.
AI bubble worries have reminded investors that even promising technologies can produce painful stock-price swings. This raises the stakes for making sure you're invested in the best options.
For those who want exposure to the theme without taking on undue valuation risk, Microsoft looks like the more resilient option, thanks to its diversified business and far more conservative valuation.
Palantir, by contrast, simply prices in too much. Even more, the company's business isn't nearly as diversified as Microsoft's.
While it's impossible to know for sure which stock is the better long-term buy, one thing is clear: Palantir stock looks a lot riskier today than Microsoft does. For that reason, I'd personally avoid Palantir, and I'd consider buying shares of Microsoft to get more exposure to the AI boom.
Before you buy stock in Microsoft, 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 Microsoft 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 $562,536!* 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,096,510!*
Now, it’s worth noting Stock Advisor’s total average return is 981% — a market-crushing outperformance compared to 187% for the S&P 500. Don’t miss out on the latest top 10 list, available when you join Stock Advisor.
See the 10 stocks »
*Stock Advisor returns as of November 17, 2025
Daniel Sparks and his clients have no position in any of the stocks mentioned. The Motley Fool has positions in and recommends Microsoft and Palantir Technologies. The Motley Fool recommends the following options: long January 2026 $395 calls on Microsoft and short January 2026 $405 calls on Microsoft. The Motley Fool has a disclosure policy.