Better Buy: Amazon.com, Inc. vs. Microsoft

With market caps of $650 billion and $570 billion, respectively, Microsoft (NASDAQ: MSFT) and Amazon.com (NASDAQ: AMZN) possess a level of size and scale that only a handful of companies in the world can claim. As these companies have risen to power, they've earned a fortune for their investors along the way.

But which is the better buy today? Let's find out.

Two elephants facing each other
Two elephants facing each other

Amazon and Microsoft are two of the biggest beasts in the public markets. We put them head-to-head to see which is the best buy for your portfolio. Image source: Getty Images.

Moat

For more than two decades, Microsoft's Windows operating system dominated the personal computer market. In recent years, however, Apple and Google have been chipping away at its lead in PCs with their popular Macs and Chromebooks. And as the world has gone mobile, iOS and Android have become the most powerful operating systems, making Microsoft's PC strength less significant.

Conversely, Amazon's competitive moat is growing stronger by the day. Its dominant consumer mindshare and massive scale advantages are helping Amazon fortify its position as the king of online retail. Moreover, they make it extremely unlikely that rivals will be able to overtake the e-commerce juggernaut.

One area where Amazon and Microsoft compete directly is in the cloud-computing infrastructure market. Here again, Amazon is the market leader, with a 35% share compared to less than 15% for Microsoft, according to Synergy Research. To be fair, Microsoft's cloud revenue has been growing at a faster rate than Amazon Web Services (AWS), albeit from a far smaller base.

Microsoft's primary advantage in this area may be simply that it's not Amazon. Major customers, such as Wal-Mart, have been urging their customers to switch from AWS to Microsoft's Azure cloud service, in hopes of curbing Amazon's staggering growth. Yet while this is helping to prop up Microsoft's cloud business, it's not enough to give it the edge in terms of competitive advantage over Amazon.

With its increasing dominance in multiple high-growth markets, Amazon has the wider moat.

Advantage: Amazon.

Financial fortitude

Amazon and Microsoft are both elite businesses, but let's take a look at some key metrics to see how they stack up in regards to financial strength.

Revenue

$161.2 billion

$92.6 billion

EBITDA

$14.0 billion

$36.2 billion

Net income

$1.9 billion

$22.1 billion

Operating cash flow

$16.2 billion

$40.4 billion

Free cash flow

$7.2 billion

$32.3 billion

Cash

$24.3 billion

$138.5 billion

Debt

$24.7 billion

$85.5 billion

DATA SOURCES: MORNINGSTAR.