For much of its history, Walmart (NYSE: WMT) was the quintessential defensive stock, the kind of company investors turned to when economic clouds gathered and consumer spending contracted. That characterisation has been complicated significantly over the past two years by a share price that surged 72% in 2024 and a further 23% in 2025, gains that look far more like those of a high-growth technology platform than a recession-proof retailer. In 2026, the stock is up a further 20%, raising a question that is becoming increasingly common on Wall Street: is Walmart a growth stock, a defensive stock, or both?

The honest answer is that it is now something of each, and that dual identity is both its greatest competitive advantage and the source of a valuation debate that divides analysts covering the name.

Walmart’s transformation began in earnest when Amazon started disrupting its general merchandise business. Rather than competing directly on every front, Walmart made a strategic pivot into groceries, becoming the largest grocer in the United States and creating a foundation of repeat visits and consumer necessity spending that insulates it from e-commerce disruption in ways that pure general merchandise retailers cannot replicate.

Layered on top of that defensive grocery base is a rapidly expanding digital business. Walmart’s US e-commerce sales surged 27% in its most recent fiscal year, with digital commerce now representing approximately 23% of net sales. Walmart Connect, the company’s digital advertising arm, grew 46% to reach $6.4 billion, placing it among the largest retail media networks in the country. Walmart+, the subscription membership programme launched as a direct response to Amazon Prime, now counts over 30 million subscribers, adding approximately 3.9 million in March 2026 alone.

Amazon (NASDAQ: AMZN) remains both rival and benchmark. For the first time in corporate history, Amazon’s total revenue eclipsed Walmart’s in the fiscal year ending January 2026, with Amazon closing at $716.92 billion against Walmart’s $713.16 billion. However, Amazon’s revenue reflects contributions from Amazon Web Services cloud infrastructure and its advertising business, both of which carry dramatically higher margins than retail. In pure retail terms, Walmart remains the larger business.

The valuation comparison between the two has become a central debate in 2026. Walmart trades at approximately 45 times forward earnings, a premium multiple that has historically been associated with faster-growing technology companies. Amazon, by contrast, trades at roughly 26 times forward earnings despite growing revenue at roughly twice Walmart’s rate and generating significantly higher and expanding operating margins through AWS. Several analysts have argued that the valuation gap between the two names is anomalous and unsustainable, with Walmart’s defensive premium making it comparatively expensive.

From a chart standpoint, WMT shares have been testing key technical breakout levels in 2026, with Morgan Stanley highlighting the company’s competitive positioning and its ability to attract new customers during periods of consumer stress.