The possibility of interest rate cuts and ongoing inflationary pressures might draw investor attention. But nothing beats the excitement around artificial intelligence (AI). This has undoubtedly been the top market topic in the last year or so.

With shares soaring 404% since the start of 2023, Nvidia looks like it's the poster child of the AI boom. Thanks to its position as an infrastructure provider, investors probably view the business as the best way to play the trend.

But don't forget about the tech behemoth that is Alphabet (GOOGL -3.37%) (GOOG -3.33%). I think this top internet enterprise is the best AI stock to buy right now. Here's why.

Doing AI for a long time

The release of OpenAI's ChatGPT in late 2022 revitalized the discussion around AI and its potential to impact many different industries. This spurred companies to figure out ways to incorporate the technology into their own operations, hoping investors would reward this new focus.

However, it shouldn't come as a shock to anyone that Alphabet has long been prioritizing AI advancements. The company's top segment, Google Search, started using machine learning and AI capabilities as far back as 2001 to help users improve spelling when making search queries. There's no doubt that this focus helped make Alphabet the dominant company that it is today.

Google Search is arguably the single most important internet-based service in the world, mainly because it has become a gateway for users to find information. And its success is still critical to Alphabet today, as Search raked in $48 billion of revenue in the fourth quarter of 2023, representing 56% of the company's total.

CEO Sundar Pichai claimed in a 2016 blog post that Alphabet was no longer a mobile-first enterprise, but "AI-first" from that point forward. This meant creating "a world where computing becomes universally available."

I'd say the business has been successful in this regard. Many of Alphabet's products already incorporate AI. Gmail uses AI not only to help with spell check, but by also reducing spam. Google Cloud continues to integrate AI functionality into the various tools it offers clients, so that they can benefit from this revolutionary technology. And -- what I believe is an extremely neat feature -- Google Photos allows users to find an image they're looking for by searching what's in the picture. These are just a few examples.

Alphabet's advantage

Ten years from now, I have a lot of confidence that Alphabet will not only remain a leader in AI, but that it could also separate itself from other top companies in the space. It all has to do with Alphabet's data advantage.

Fifteen of the company's products and services are used by more than 500 million people across the globe. In fact, google.com and youtube.com are the two most visited websites on the planet. Consequently, I'd be surprised if there's another business that collects more data than Alphabet.

And this means the company can constantly train its AI systems to improve. This leads to a positive feedback loop where more data means better AI models, which results in improved customer experiences and greater usage, leading to even more data collection. That's a powerful advantage for Alphabet.

It's probably no wonder that the company's latest generative AI model, Gemini, beats ChatGPT in numerous performance areas.

Looking at valuation

Besides the topic of AI, Alphabet makes for a smart investment because its shares are attractively priced. The FAANG stock trades at a price-to-earnings (P/E) multiple of 25.6.

Nvidia, on the other hand, sells for a P/E ratio of 97.2. To be fair, the chipmaker is registering monster growth. But it looks like investors are pricing in the belief that growth at this rate can go on indefinitely. And this won't be the case.

This makes Alphabet the best AI stock to buy right now, in my opinion.