Investors are trimming their exposure to the semiconductor industry, which is at the heart of the artificial intelligence (AI) boom.
A prolonged sell-off in the broader market might create bargains for investors, as high-flying stocks return to more reasonable valuations.
Datadog and Palo Alto Networks are two stocks that might be worth scooping up at the right price.
After posting blistering gains for the past three years, many of the stocks leading the artificial intelligence (AI) revolution are pulling back. Investors are worried about a range of potential risks, from rising funding costs for data centers to weaker future demand than anticipated, which could derail the infrastructure spending boom.
The iShares Semiconductor ETF, which invests in the leading suppliers of AI chips and components, is currently trading in bear territory after declining by more than 20% from its June peak. The downturn is starting to weigh on major indexes like the Nasdaq-100 and the S&P 500, which could hurt investors' sentiment toward the market overall.
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 »
I have my eye on two AI stocks from outside the semiconductor sector that could be great buys if the sell-off in the broader market intensifies. Here they are.
Image source: Getty Images.
Tens of thousands of businesses use Datadog's (NASDAQ: DDOG) cloud observability platform to monitor their digital infrastructure, because it can immediately alert them to technical glitches that might be affecting their sales channels or mission-critical software applications. I've advised caution on this stock during the past few months solely because of its high valuation (which I'll discuss further in a moment), but a correction could be a great long-term buying opportunity.
During the past couple of years, Datadog has released a suite of observability tools specifically for the AI industry. LLM Observability, for example, helps developers identify technical issues, track costs, and analyze the quality of outputs when building large language models (LLMs). These models sit at the foundation of customer-facing chatbots and agents, so errors or inaccuracies could hurt a business both financially and reputationally.
In April, Datadog launched another product called GPU Monitoring to help businesses track usage costs and uncover technical issues when deploying graphics processing units (GPUs). These are the primary data center chips used when developing and running AI software, so they must be performing at optimal capacity to maximize processing speeds and minimize costs.
Datadog said all 10 of the AI industry's leading companies were customers as of June 30, and although it hasn't named them, we can reasonably assume the likes of Anthropic and OpenAI are among them. Datadog also said Model Context Protocol (MCP) server calls quadrupled during the second quarter of 2026, compared to the first quarter just three months earlier. In simpler terms, that means the amount of AI-related activity occurring in Datadog's ecosystem is surging.
Datadog's revenue growth accelerated to 36% in the second quarter. As a result, management raised its 2026 revenue forecast by $140 million to $4.46 billion (at the midpoint of the projected range). But valuation remains a concern; its stock trades at a price-to-sales (P/S) ratio of 24.3, a steep premium to its three-year average of 17.7.

DDOG PS Ratio data by YCharts
As a result, it probably isn't a good idea to buy Datadog stock today. However, a decline of 20% or 30% amid a broader market sell-off could be a golden opportunity for investors to take a long-term position.
Every time an enterprise plugs their internal data into a third-party AI model to run a chatbot or agent, they are creating a new attack surface for hackers to exploit. To make matters worse, malicious actors are now using AI to constantly probe corporate networks for vulnerabilities, making successful breaches more likely than ever. Palo Alto Networks (NASDAQ: PANW) is the world's largest pure-play cybersecurity company by market capitalization, and its products help mitigate these new threats.
Palo Alto's Prisma AIRS platform, for instance, monitors every internal AI agent's interactions in real time, while constantly scanning third-party models for vulnerabilities. It's effectively a gateway for all AI-related traffic, making sure malicious applications can't infiltrate the enterprise.
To handle external threats, Palo Alto's Cortex XSIAM platform uses AI to completely automate the security operations center. It handles threat detection and incident response, reducing the average customer's median time to respond to an incident to just 10 minutes, whereas it might have been days or even weeks previously.
Products like Prisma AIRS and Cortex XSIAM fall under Palo Alto's next-generation security (NGS) portfolio, which had $9 billion in annual recurring revenue (ARR) at the conclusion of the company's 2026 fiscal year (ended July 31). That was up by a whopping 63% from the year-ago period, so these AI-related products are experiencing significant demand. In fact, Palo Alto believes it can more than double its NGS ARR to $20 billion by fiscal 2030.
However, while that growth sounds promising, it's important for investors to pay the right price for Palo Alto stock. It's currently trading at a P/S ratio of 22.6, a significant premium to its three-year average of 15.6, so waiting for a correction might be the right move.
Before you buy stock in Datadog, 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 Datadog 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 $380,363!* 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,315,732!*
Now, it’s worth noting Stock Advisor’s total average return is 919% — a market-crushing outperformance compared to 211% 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 October 18, 2026.
Anthony Di Pizio has no position in any of the stocks mentioned. The Motley Fool has positions in and recommends Datadog and iShares Trust-iShares Semiconductor ETF. The Motley Fool recommends Palo Alto Networks. The Motley Fool has a disclosure policy.