Microsoft (NASDAQ: MSFT) and Google's parent company Alphabet (NASDAQ: GOOG) (NASDAQ: GOOGL) have both generated impressive gains for patient investors. Alphabet's stock rallied roughly 170% as Google's advertising business, its cloud platform, and YouTube fired on all cylinders. However, both stocks pulled back about 20% this year as inflation, rising interest rates, and other macroeconomic headwinds rattled the market.