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

Microsoft and Amazon.com are two of the most heavily traded and commonly owned stocks on the market. Would either one be a good fit for your investment strategy?

Let's find out.

By the numbers Amazon is a relentless growth engine. The e-tailer's trailing revenues recently passed Microsoft, which is dealing with a recent bluntingof its formerly impressive sales growth.

AMZN Revenue (TTM) data by YCharts.

On the other hand, it is well known that software sales carry much wider profit margins than Amazon's online retail operations. Amazon's operating margins are razor-thin at best, and Microsoft looks downright impressive by comparison.

The story doesn't change much if we drop down to the cash flow line, where Redmond's annual winnings run more than three times as rich as Amazon's. However, there's a wind of change blowing here:

AMZN Free Cash Flow (TTM) data by YCharts.

Microsoft is now trading at 16 times trailing cash flows. That's up from 10 times free cash a year ago, as Microsoft's free cash flows shrank by 11% while the company's enterprise value rose 40% higher.

Meanwhile, Amazon's cash flows nearly quadrupled, but market prices only rose by 60%. Thus, the enterprise value-to-free-cash-flow ratio dropped from 53 to 36.

In other words, Microsoft's stock is becoming more expensive while Amazon is quickly growing into its generous valuation. Another couple of years like this, and Amazon would become the obvious value pick in this duel.

Image source: Amazon.

What's next? Of course, no one knows exactly how much further Amazon's current growth spurt will last, how much of it will drop down to the free cash line, or how mellow the market reaction to such a romp would be. But it's clear that Amazon's fortunes no longer live and die by online retailing alone. That once-silly little Amazon Web Services division is now pulling its weight, supplying 7% of Amazon's total sales in the recently reported fourth quarter of 2015 -- but 39% of Amazon's operating income.

The dominant AWS operation positions Amazon as a whole for many years of continued growth, regardless of what happens in the online retail market. That retailing segment, of course, is still kicking butt and taking names in its own industry, giving Amazon a stable financial platform from which to launch AWS and other innovative projects without betting the entire farm.

So Amazon takes the prize for both growth and value investors here. Is there anywhere left for Microsoft to go?

But of course. Under the refreshingly open-minded leadership of CEO Satya Nadella, Redmond has become a turnaround story on a grand scale.

Microsoft CEO Satya Nadella. Image source: Microsoft.

Nadella embraces ideas that predecessor Steve Ballmer would have thrown a chair at, including open-source development and settling for second place when winning isn't worth the investment.

For example, Windows 10 is not only a free upgrade for millions of old-school Windows users, but an automatic and nearly required one in many cases. That would never have happened under Ballmer's "show me the money" reign, even though it's almost certainly the only approach that can keep Microsoft relevant for the long-term future.

Buying Microsoft means accepting the risks that Nadella invites, and betting that the rewards will be worth it. If Nadella's vision works out as planned, his company might retake the growth-stock favorite mantle that Amazon holds today. But that's by no means a guaranteed outcome.

For the first time in forever, Amazon is the safe play while Microsoft balances huge risks against -- considering Redmond's currently low-key valuation ratios -- even larger potential rewards. Amazon is for level-headed investors, and Microsoft is for the gamblers among us.

The article Better Buy: Amazon.com, Inc. vs. Microsoft Corporation originally appeared on Fool.com.

Anders Bylund has no position in any stocks mentioned. The Motley Fool owns shares of and recommends Amazon.com. The Motley Fool recommends Microsoft. Try any of our Foolish newsletter services free for 30 days. We Fools may not all hold the same opinions, but we all believe that considering a diverse range of insights makes us better investors. The Motley Fool has a disclosure policy.

Copyright 1995 - 2016 The Motley Fool, LLC. All rights reserved. The Motley Fool has a disclosure policy.