Editor's note: This article has been corrected. Microsoft does not own any portion of OpenAI; it is entitled to a share of profit distributions.

Artificial intelligence (AI) has captivated Wall Street over the last year -- and for good reason. Data from Grand View Research shows the AI market hit nearly $200 billion last year and is projected to expand at a compound annual growth rate of 37% through 2030. That forecast would see it exceed a value of $1 trillion before the end of the decade.

Consequently, it's not surprising that firms across the tech sector have restructured their businesses to prioritize AI development, creating dozens of ways to invest in the high-growth sector in the new year.

Two attractive options are Microsoft (MSFT 1.82%) and Intel (INTC -9.20%), with one excelling in the software side of AI and the other making promising inroads in the chip sector. These companies have significant potential in AI and likely have much to offer new investors over the long term.

So, let's examine whether Microsoft or Intel is the better AI stock in 2024.

Microsoft

Microsoft emerged as one of the biggest threats in AI last year with a partnership with ChatGPT developer OpenAI. The partnership gave Microsoft access to some of the most advanced AI models in the industry, making it highly competitive against rivals Amazon and Alphabet.

The Windows company has so far used OpenAI's technology to bring AI upgrades across its product lineup. Aspects of ChatGPT have been integrated into Microsoft's search engine Bing; a range of AI tools are now available on its cloud platform Azure; and the company's various Office platforms are offering boosted productivity with the help of AI.

It's still early days for Microsoft's venture into AI, but the company's quarterly earnings suggest its investment is paying off. In the first quarter of 2024 (ending September 2023), Microsoft posted 13% year-over-year revenue growth, beating analysts' estimates by nearly $2 billion.

Significant gains came from the company's cloud and productivity segments (both hyper focused on AI development), reporting a revenue rise of 19% and 13%, respectively.

Moreover, Microsoft hit over $63 billion in free cash flow in 2023, indicating it has the funds to continue investing in AI and flourish in the market over the long term.

Intel

Intel isn't as far along in its AI expansion as Microsoft, but that could mean it has more growth potential in the coming years.

Chip stocks soared last year alongside rising excitement for AI. Nvidia took center stage, getting a headstart in the sector as it snapped up an estimated 90% market share in AI graphics processing units (GPUs), the chips necessary to train and run AI models. However, Intel is gearing up to challenge Nvidia's dominance in AI, which could see earnings soar in 2024.

In December, Intel unveiled a range of new AI GPUs called Gaudi3, designed to compete directly with Nvidia's offerings. The tech giant also announced new Core Ultra processors and Xeon server chips, which both include a neural-processing unit meant to run AI programs faster.

Intel has had a rough few years, faced with a market downturn that brought steep declines in PC sales. However, its earnings are on the right track. Despite posting a 14% year-over-year dip in revenue in Q3 2023, operating income rose more than 43% to $2 billion.

Intel is on a promising growth trajectory and could deliver major gains this year thanks to the launch of its new AI chips.

Is Microsoft or Intel the better AI stock?

Microsoft and Intel have significant potential in AI, with both companies investing heavily in the market. However, Microsoft's forward price-to-earnings ratio (P/E) of 36 compared to Intel's 25 makes the Windows company far more expensive. Intel's lower figure indicates its stock offers considerably more value.

Meanwhile, earnings-per-share (EPS) estimates show Intel may have more stock-growth potential over the next two fiscal years.

MSFT EPS Estimates for 2 Fiscal Years Ahead Chart

Data by YCharts.

This chart shows over the next two fiscal years, Microsoft's earnings could hit $15 per share, while Intel's may achieve nearly $3 per share. At first glance, Microsoft looks like a no-brainer. However, multiplying these figures by each company's forward P/E (Microsoft's 36 and Intel's 25) yields stock prices of $540 for Microsoft and $68 for Intel.

Considering their current positions, these projections would see Microsoft's stock rise 36% and Intel's 42% over the next two fiscal years. While both figures are impressive, Intel's higher percentage, cheaper stock price, and prominent role in AI make it a more attractive investment this year.