If you do any kind of yard work at all, you know The Home Depot (HD -0.49%) and Scotts Miracle-Gro (SMG -1.39%). One sells you everything you need to keep your yard, and home, in pristine shape; the other provides Home Depot with a lot of the yard care products it sells. But which of these similar companies is the better investment option?

Leading the competition

Home Depot has been hitting on all cylinders lately. For example, the pain of the deep 2007-to-2009 recession lasted until 2010. But sales started to tick higher again in 2011, and have increased each year since. Earnings have been an even better story, increasing in 2010 and each year since. A big part of the earnings strength here can be attributed to a more than doubling of Home Depot's operating margins over that span. There's no question: This company is executing very well.   

A hand drawing a scale weighing risk versus reward

Image source: Getty Images.

It goes even deeper than the numbers, too. For example, the so-called "retail apocalypse" has taken out many once-iconic names that couldn't adjust to the impact of online retail. However, Home Depot appears to have integrated this new avenue for reaching customers quite nicely into its business model. As Motley Fool's Matthew Cochrane recently noted, 60% of Home Depot's foot traffic starts with a visit to the company's website. Also, 45% of online orders are picked up in the store and 85% of returns made at a physical location. Clearly, Home Depot has embraced the online threat and turned it into a growth platform.

There's more good news here, too, including the company's efforts to ensure its best customers, professionals, are well served. But to head back to the big picture again, Home Depot thinks that it can continue to pull multiple levers, such as the two just noted, and grow revenues from roughly $101 billion in 2017 to as much as $120 billion in 2020. So the future looks pretty bright here. What's not to like? Valuation.

HD PS Ratio (TTM) Chart

HD PS Ratio (TTM) data by YCharts

Home Depot's price-to-sales ratio of nearly 2.1 is above its five-year average of roughly 1.9. And the earnings growth that should come along with improving sales appears priced in, as well. The company's price-to-earnings-to-growth ratio, or PEG ratio, of nearly 1.6 is basically in line with its five-year average. Wall Street, not surprisingly, knows how good a company Home Depot is. Which is why some investors might be looking at Scotts Miracle-Gro as an alternative.   

A much cheaper option?

Scotts' stock price is down 30% from its highs in early 2018, which might prompt investors looking for a good deal to take a look. But that drop is actually suggesting that something is amiss at the lawn care products company, including weak sales and earnings results over the last few years. So from a big-picture perspective, a fully valued Home Depot still appears to be the better choice here. But there's still one issue that might tempt investors to buy Scotts. 

SMG Chart

SMG data by YCharts

The big news surrounding Scotts isn't in lawn care, it's in pot. The company has moved quickly to establish a position in the hydroponic gardening segment. Hydroponic systems have long been used to grow marijuana, even when it isn't legal to do so. With pot increasingly getting the stamp of approval, however, Scotts saw an opportunity to jump into a plant care segment that could help push its top line higher. Sales in its Hawthorne hydroponic division grew an incredible 84% in the fiscal first quarter!   

But don't get too excited; that was driven by acquisitions. Which brings up the big problem with Scotts' hydroponic bet -- long-term debt has increased from roughly $700 million in 2014 to nearly $2.2 billion at the end of the fiscal first quarter. That's pushed the company debt up to a worrying 90% of the capital structure. And the rapid expansion into hydroponics hasn't exactly been smooth sailing, with Scotts writing down the value of its investments there by nearly $100 million in the fiscal fourth quarter of 2018 amid weaker-than-expected sales results at some of its acquired businesses.   

The steep stock drop at Scotts represents very real concerns about its big expansion plans. And for most investors, it would be better to err on the side of caution here and avoid Scotts shares. Even if Hawthorne ends up a success, the company will still have to deal with all the debt it used to build the division. And if the hydroponic push doesn't pan out...then the company still has to deal with the debt, only from a position of weakness. If you like the pot story here, sit on the sidelines until there's more concrete evidence of success. (There are also less risky ways to play the marijuana space.)

An easy win, but you'll pay full price

So, in a comparison between Home Depot and Scotts Miracle-Gro, Home Depot is the hands-down winner. There's just too much risk involved in Scotts' aggressive push into the hydroponic space even if there's huge potential demand from the marijuana industry. That said, Home Depot doesn't come cheap. After a long string of solid results, investors are clearly aware of how well Home Depot is operating. In other words, bargain hunters should look elsewhere. But if you are willing to pay a fair price for a great company, then Home Depot looks worth a deep dive.

Check out the latest earnings call transcripts for Home Depot and Scotts Miracle-Gro.