New: Introducing “Why Is It Moving?” - lightning-fast, AI-driven explanations of stock moves

Learn More

Best Stock to Buy Right Now: Alibaba vs. Amazon

By Robert Izquierdo | October 15, 2025, 5:17 AM

Key Points

  • Alibaba and Amazon are heavily investing in AI infrastructure, leading to significant capital expenditures.

  • Alibaba's capex spending resulted in negative free cash flow in fiscal Q1, but AI revenue is up by triple digits year over year.

  • Amazon is seeing sales growth despite macroeconomic headwinds, such as tariffs.

Artificial intelligence is arguably the most significant trend in technology today. Among the AI sector's biggest players are Alibaba (NYSE: BABA) and Amazon (NASDAQ: AMZN).

Both are well positioned for AI because they are e-commerce and cloud computing giants. Their e-commerce data feeds AI learning, while their cloud services deliver the necessary computational power.

Where to invest $1,000 right now? Our analyst team just revealed what they believe are the 10 best stocks to buy right now. Continue »

Despite the similarities in their businesses, different factors are at play when considering an investment in Alibaba or Amazon. If you had to pick one to invest in, the choice can be challenging. Here's a breakdown of the two to evaluate which is the better investment right now.

A circuit board shows a chip with the flags of China and the USA on it.

Image source: Getty Images.

Alibaba's steps toward business growth

Alibaba is going all out in pursuit of AI success. It's pouring substantial sums into tech infrastructure to support AI, leading to capital expenditures of $5.4 billion in its fiscal first quarter, ended June 30. That's more than triple the prior year's $1.6 billion capex investment.

This cost increase led to an outflow of free cash flow (FCF) totaling $2.6 billion in fiscal Q1. Alibaba's negative FCF is not a good sign, since free cash flow is important to many aspects of its business, including delivering dividend payments to investors.

But the gamble is paying off for shareholders in other ways. Alibaba stock is up more than 90% this year through Oct. 13.

AI was a contributing factor to the company's impressive share price performance. Discussing fiscal Q1 results, CEO Eddie Wu said, "With triple-digit growth in AI-related product revenue for the eighth consecutive quarter, AI-related revenue this quarter accounted for over 20% of revenue from external customers."

AI is not the only driving force in Alibaba's business growth. The company rolled out "quick commerce" across China in May. The concept involves accelerated product delivery, typically within an hour. The move proved to be a winning strategy.

Quick commerce helped Alibaba reach new highs in monthly active consumers and daily order volume. Consequently, its fiscal Q1 China e-commerce sales rose 10% year over year to $19.6 billion.

A closer look at Amazon

Like Alibaba, Amazon is investing heavily into tech infrastructure for AI, causing costs to rise rapidly. Its capex soared to $103 billion over the trailing 12 months through Q2, a whopping 87% year-over-year increase. Notably, Amazon still produced FCF of $18.2 billion over that time.

The capex spending was worth it. Amazon injected AI throughout its operations, and is providing the tech to other businesses through its cloud computing segment, AWS. This translated into Q2 AWS sales growing nearly 18% year over year to $30.9 billion.

Along with AWS, Amazon's retail division is also seeing success. This part of Amazon's business was supposed to suffer under 2025's unfavorable macroeconomic environment, such as unpredictable changes in tariff policies and its impact on consumer spending, which contributed to Amazon shares seeing less than a 1% gain this year through Oct. 13. And yet, the company's retail sales are going strong.

Q2 revenue in Amazon's North American segment rose 11% year over year to $100.1 billion while the international division saw a 16% year-over-year increase to $36.8 billion. This growth led to $167.7 billion in total Q2 revenue, up 13% compared with $148 billion in the second quarter of 2024.

Amazon's Q2 success is expected to extend into Q3. The company forecasted Q3 sales to grow between 10% and 13% year over year.

Choosing between Alibaba and Amazon stocks

With AI contributing to Alibaba and Amazon's rising sales, deciding which to invest in requires looking at additional factors. One is the forward price-to-earnings (P/E) ratio of their stocks.

BABA PE Ratio (Forward) Chart

Data by YCharts.

The chart shows Alibaba's forward earnings multiple has been moving up in recent months, indicating the stock is getting more expensive, but it's still below Amazon's. This suggests Alibaba stock is a better value.

That said, there are reasons for Amazon's higher valuation. For instance, Amazon's FCF remains in positive territory despite its immense AI investments, unlike Alibaba.

In addition, Alibaba's e-commerce share in China fell from more than 50% in 2021 to around 40% in 2024 as competition ate into the company's leadership. Meanwhile, Amazon's e-commerce market share has slowly grown over that time, from 38% to 40%.

Finally, the current geopolitical climate should be part of the investment equation. While Alibaba's business remains strong and its AI bets are paying off, geopolitics are casting a shadow over the company.

The Trump administration's introduction of high tariffs last April roiled relations between the U.S. and China. In fact, Trump called for the delisting of Chinese stocks earlier this year.

More recently, a dispute over China's export of rare-earth metals led Trump to threaten new tariff hikes. While geopolitics impact both tech titans, any economic fallout affecting China will hurt Alibaba more than Amazon, since China is Alibaba's largest market, accounting for $19.6 billion of its $34.6 billion in Q2 revenue.

The unpredictable nature of U.S.-China relations right now, combined with Amazon's better FCF and growing market position, gives Amazon the edge over Alibaba as the superior stock investment.

Should you invest $1,000 in Alibaba Group right now?

Before you buy stock in Alibaba Group, 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 Alibaba Group 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 $657,412!* 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,154,376!*

Now, it’s worth noting Stock Advisor’s total average return is 1,075% — a market-crushing outperformance compared to 190% for the S&P 500. Don’t miss out on the latest top 10 list, available when you join Stock Advisor.

See the 10 stocks »

*Stock Advisor returns as of October 13, 2025

Robert Izquierdo has positions in Alibaba Group and Amazon. The Motley Fool has positions in and recommends Amazon. The Motley Fool recommends Alibaba Group. The Motley Fool has a disclosure policy.

Latest News