Among the "Magnificent Seven" stocks, Nvidia (NASDAQ: NVDA) had the best run in 2023, rising 239%. With that kind of one-year performance, investors shouldn't expect another repeat, or even for Nvidia to once again claim the crown of the best "Magnificent Seven" stock in 2024.

Instead, I think investors should be looking at Alphabet (GOOG 9.96%) (GOOGL 10.22%) to outperform its peers. Alphabet also had a strong 2023, up 58%. But it's valued much lower than Nvidia despite strong tailwinds. This all adds up to what should be a phenomenal year for Alphabet stock in 2024.

Ads are still Alphabet's primary business

First and foremost, Alphabet's primary business is advertising. While most people are excited about its artificial intelligence (AI) capabilities or cloud computing, the reality is that nearly 80% of revenue comes from its ad business.

Alphabet has multiple ad streams, but its largest is its Google Search division. While this segment struggled throughout late 2022 and early 2023, the third quarter was different, as it grew revenue by 11% to $44 billion. Another key platform is YouTube, which holds the highest screen time among all streaming services. Revenue grew 12% in Q3, but expect this segment to have a big year as ad spending bounces back.

Share of U.S. TV screen time per day.

Data source: Nielsen.

While ads keep the lights on for Alphabet, other investments are starting to take shape.

Alphabet's AI bets are starting to take form

Artificial intelligence has been a key investment theme for Alphabet ever since CEO Sundar Pichai declared Alphabet an AI-first company. While this takes several forms (including optimizing the ad business to be more AI-powered), the latest iteration has been generative AI.

This movement took the world by storm when ChatGPT became popular in late 2022, and multiple companies began offering generative AI solutions for business. However, these models need to be built on a platform, and Alphabet's Gemini looks like a top option. Gemini beat the competition in several key benchmark tests, including becoming the first model to outperform human experts on the massive multitask language understanding test. Alphabet has yet to monetize this platform, but investors can expect that sometime in 2024.

Also in Alphabet's AI aspirations is its cloud computing business, Google Cloud. Google Cloud currently sits in third place in terms of market share, but that position isn't a big deal considering how large this market is. Google Cloud has steadily grown above 20% year over year, yet hasn't optimized for profits. With an operating margin of just 3%, Google Cloud could be a massive profit boost when the company changes its mindset from growth at all costs to profitability. While that likely won't happen in 2024, it's a long-term booster for investors to consider.

Despite these strong tailwinds, Alphabet still trades at a reasonable valuation.

Alphabet's stock is attractively priced

Alphabet's stock looks far more reasonable than Nvidia's 70 times trailing and 43 times forward earnings.

GOOGL PE Ratio Chart

GOOGL PE Ratio data by YCharts

A valuation of 20 times forward earnings isn't a bad price, especially considering that Alphabet's stock hasn't traded that low in some time. Furthermore, with the right conditions, Alphabet could easily surpass these projections, making it an even better stock to own in 2024.

While Nvidia is still a strong business, the stock has gotten ahead of itself. Investors are better off purchasing a stock like Alphabet right now, which provides growth at a reasonable price.