Alphabet (GOOGL -0.09%) (GOOG -0.02%) and Microsoft (MSFT -0.32%) took different paths to attain market caps topping $1 trillion. Alphabet built its brand on internet search and advertising through its largest revenue driver, Google. Conversely, Microsoft established itself by developing the operating systems and productivity software that once ran the tech world.

However, both companies have emerged as competitors in recent years, most notably in the cloud. Both have challenged the dominance of Amazon's Amazon Web Services (AWS), which remains the largest cloud infrastructure company.

Nonetheless, the question of whether Alphabet or Microsoft will drive higher returns for investors comes down to more than just the cloud. Let's look at both tech stocks to see which will be the better buy going forward.

The two mega-caps and their businesses

Both Alphabet and Microsoft appear positioned to grow despite their already massive operations. MarketsandMarkets Research predicts that the cloud infrastructure market will grow at a compound annual growth rate (CAGR) of almost 18% through 2025. Also, Canalys estimates that Microsoft Azure controls about 19% of the cloud infrastructure market, compared with 7% for Google Cloud.

However, investors should remember that the cloud has now become Microsoft's primary growth driver. This happened after it made a comeback amid a declining PC business. 

An image of the globe with connection nodes shooting into space.

Image source: Getty Images.

This arrangement benefited Microsoft more during the COVID-19 pandemic as lockdowns and social distancing brought more workloads to the cloud. Cloud growth bolstered both its intelligent cloud division and productivity and business processes divisions during this time.

Conversely, Google's ad business suffered due to lower economic activity at the height of the pandemic. As a result, its second-quarter earnings report led to its first year-over-year revenue decline since becoming a public company.

However, revenue growth resumed in the third quarter. Moreover, investors should remember that Google has spawned innovation across numerous businesses. Autonomous vehicle division Waymo and Verily Life Sciences, a healthcare-focused data science business, are two examples.

Given the recovery in the ad business and the potential for other businesses to drive growth, investors should not count Alphabet out.

Both companies continue to post impressive numbers

Both companies also derive some revenue from online gaming. However, the more exciting battle royale game may be the fight to outdo one another in the financial realm.

Admittedly, both companies produce excellent numbers in this area. This is especially notable since the sheer size of mega-caps makes high-percentage growth more difficult.

Investors appear to have rewarded them accordingly. Microsoft holds a slight edge in stock price gains year to date. Still, at a 2020 year-to-date return of over 30%, both companies have served their investors well.


GOOGL data by YCharts

Moreover, both companies also maintain somewhat elevated earnings multiples. Alphabet trades at approximately 31 times forward earnings, while Microsoft sells for a forward P/E ratio of around 32.

Amid the pandemic, the recent revenue and earnings figures have admittedly favored Microsoft. However, in the most recent quarter, Alphabet's diluted earnings per share (EPS) surged by 62% from the same quarter last year. Microsoft's diluted EPS increased by 32% over the same period.

Still, of the two, Microsoft delivered higher quarterly free cash flow. Microsoft generated an estimated $14.4 billion while Alphabet reported $11.6 billion. This was an increase of about 33%, compared to a year-over-year increase of about 38% for Microsoft.

Financial Metric Alphabet Microsoft
Forward P/E ratio 31 32
YOY revenue growth, previous quarter 14% 12%
YOY diluted EPS growth, previous quarter 62% 32%
Free cash flow  $11.6 billion $14.4 billion
Growth in free cash flow 33% 38%

Data source: Alphabet Q3 2020 earnings, Microsoft Q1 2021 earnings. YOY = year over year. 

Alphabet or Microsoft?

Over the long run, investors will probably earn significant returns by investing in either company. Given their presence in high-growth tech businesses, both of these stocks should move higher over time.

However, if one must choose, investors should gravitate toward Alphabet. For one, Alphabet holds the edge when comparing legacy businesses. Online ads will likely drive massive growth for the foreseeable future. Although PCs will probably continue to earn revenue for Microsoft, the demand for operating systems is not likely to grow quickly.

Moreover, Alphabet has positioned itself for multiple sources of growth. Google is ramping up its cloud presence while search and ads generally remain strong. Furthermore, it holds stakes in numerous businesses across numerous tech-related niches.

Conversely, while the cloud should hold Microsoft in good stead, it will probably serve as its primary growth driver for years to come.

No matter which company delivers higher returns, both will likely remain top players in tech for a long time to come. Expect this battle royale to continue.