In a recent report from Goldman Sachs, just 11% of companies in the S&P 500 provided hard numbers supporting productivity gains due to AI during their second quarter earnings calls. Only 2% could say that AI was directly impacting their earnings. Even for companies that showed productivity gains, there was only a “small and statistically insignificant difference in earnings growth.”

There’s little doubt that AI will be a transformative technology, but the financial returns just aren’t there yet. This can make it challenging for investors to differentiate between AI hype and solid long-term investments.

The dotcom bubble is a helpful example of what’s going on here. It ran from 1994 to 2000. There was a lot of money to be made during that time. But a lot of the growth was driven by companies that weren’t very good. Many companies just stuck .com on the end of their name, weren’t making any money, had poor balance sheets and were over-leveraged, and imploded as a result. Others became Salesforce and Amazon.

In other words: Some of the dotcom hype was legit and some important companies got their start during that initial period. But there were also some really weak companies that benefited from undeserved hype, and that created the bubble. Nevertheless, no one today would pretend that early investments in the internet weren’t worth it. The internet changed the world, and we can’t ignore AI either.

Some of the companies building AI tools, technology and infrastructure today will help transform the world for decades to come, and they’re great long-term investments. Likewise, some of the legacy companies deploying AI right now are going to get it right and see major productivity and earnings gains as a result, and they will also be a great long-term investment. We’re not seeing that yet because big gains always lag the introduction of a new technology. Data centers and power plants are still being built, and the technology itself is evolving at a breakneck pace. What we see today is most likely not what AI will look like in two or three years.

There are going to be companies that totally fail at AI, there will be charlatans, and there will be management failures, just as there will be major successes.

So, how do investors choose where to put their money?

It’s actually pretty simple: They need to look at the company’s management and track record overall. Do they trust the leadership? Has the company managed change well in the past? Do their goals and how they aim to reach them make sense? Do they have a strong balance sheet?

If all of those factors are positive, then it’s probably a good investment. If there are red flags, then it might not survive. These are basic questions that should be asked about any investment, and just because AI is a factor, doesn’t change the fundamentals.

AI has dominated the conversation for two years, and it’s driven enormous gains in the market. Most of that has come from the Mag Seven. These are on track to be some of the greatest companies and investments of all time.

The fact that certain companies will be successful while others won’t be is not uncommon. When the automobile was first invented, there were literally hundreds of companies making them in the United States. Now, there’s a small handful that succeeded. This is a typical pattern for innovative new industries. There will be winners and losers in the AI era, but fundamentals will always matter.