Many stocks have soared recently, largely driven by enthusiasm in the tech sector for emerging artificial intelligence (AI) companies. But some areas of the market have been under pressure, and even some growth stocks are seeing their share prices retreat.
One such growth company whose share price is flailing right now is Costco Wholesale (COST +0.59%). The giant membership-based retailer has seen its share price tumble about 7% over the past year, despite the company's solid sales and rising earnings.
Here's why Costco stock remains a buy despite its shares' recent decline.
Image source: Getty Images.
1. Boring is beautiful
Investors are opting for flashy AI stocks these days, and some of the allure is understandable. AI leader Nvidia have experienced phenomenal sales and earnings growth, and its shareholders have been rewarded handsomely.
But, as the phrase goes, all that glitters isn't gold. Some tech stocks are overpriced, and their rising share prices are making it harder to justify their premium price tags.
In comparison to many AI companies, Costco looks painfully boring. But it's a good time to consider what Warren Buffett said once in one of his famous Berkshire Hathaway shareholder letters: "I will tell you now that we have embraced the 21st century by entering such cutting-edge industries as brick, carpet, insulation, and paint. Try to control your excitement."
The joke he was making was that even in the 21st century, he was investing mostly in boring companies that continued to increase their sales and earnings. And Costco is doing just that. Its fourth-quarter sales rose 8% to $86.1 billion, and earnings per share increased 11% to $5.87, both of which beat analysts' consensus estimates.
While discount warehouses may not be exciting, slow and steady growth is what makes companies truly great over the long term.
2. The company has a competitive moat
One thing that helps companies beat their rivals is by developing a competitive moat that's not easily breached. Costco has one with its massive membership numbers and high renewal rates.
The company has about 80 million members worldwide and an enviable membership renewal rate of about 90%. That means that when members sign up to join Costco, they often stick around for a very long time.
That's great news for Costco because unlike most retailers, Costco doesn't make its profits from selling goods. Its profit comes from membership fees, which reached $1.7 billion in the fourth quarter -- a very impressive 17% increase from the year-ago quarter.
What's more, Costco enjoys 60% of the domestic warehouse club market. Also, more members than ever are signing up for the company's more expensive Executive Membership (which costs $135 annually, compared to $65 for the Gold Star Membership), with signups increasing 11% over the past decade.

NASDAQ: COST
Key Data Points
3. It's built for difficult times
While Costco benefits from good economic times, owning shares can also serve as a hedge against difficult times. That's because Costco members shop at the store to save money, and they view their memberships as a smart financial move for their budgets.
When difficult economic times come, or even during recessions, people don't stop spending -- they're just more cautious about where they spend, and how much.
That works in Costco's favor because shoppers buy a Costco membership to save money, and it's likely they'll cut other areas of their budget before they ditch their membership -- hence the 90% renewal rates.
When you consider all this together, Costco's 7% share price decline over the past year appears more like a blip than a significant long-term problem for the company. And with this temporary pullback, investors can purchase Costco stock at a relative discount.