There are no two ways about it: This has been a trying year for both new and tenured investors. Since hitting their respective all-time closing highs, the 126-year-old Dow Jones Industrial Average, benchmark S&P 500, and growth-focused Nasdaq Composite have respectively fallen by as much as 19%, 24%, and 34%. This means the Nasdaq and S&P 500 are officially in the grip of a bear market.

To make matters worse, there's the growing likelihood that the U.S. could enter a recession. First-quarter gross domestic product (GDP) in the U.S. shrank by a surprising 1.5%, and the latest forecast from the Federal Reserve Bank of Atlanta calls for 0% GDP growth in the second quarter. With the Fed entering a period of aggressive monetary tightening amid historically high inflation, there's the real possibility the stock market could head lower.

But there are two sides to this coin.

A twenty dollar bill paper airplane that's crashed and crumpled into the financial section of a newspaper.

Image source: Getty Images.

Periods of expansion last disproportionately longer than contractions. Further, every bear market throughout history has eventually been cleared away by a bull market rally. In other words, big drops in the broader market are the perfect opportunity to do some shopping.

The good news is there are a number of especially safe stocks to buy that can help patient investors navigate a market rife with recession risk. What follows are four of the safest stocks to buy if the U.S. dips into a recession.

AT&T

The first exceptionally safe stock investors can buy is telecom behemoth AT&T (T 1.30%). Take note that AT&T is parsing out a 5.7% annual yield, which'll take a big bite out of historically high inflation.

The beauty of telecom stocks is that their operating cash flow tends to be transparent. Over the past two decades, owning a wireless device/smartphone and having access to wireless services have effectively become basic necessities. This suggests that economic downturns are unlikely to result in a significant increase in wireless churn rates.

AT&T is also working on its biggest organic growth catalyst in about a decade -- the 5G revolution. The company is spending billions of dollars to upgrade its wireless infrastructure to handle 5G download speeds. The expectation is that we'll witness a multiyear device-replacement cycle that leads to a sizable increase in data consumption, and data happens to be where AT&T's juiciest wireless margin come from.

Additionally, AT&T spun off content arm WarnerMedia in April, which was subsequently merged with Discovery to create an entirely new media entity: Warner Bros. Discovery. When this merger was finalized, AT&T netted a $40.4 billion cash payment that it can use to reduce its outstanding debt and improve its financial flexibility.

Energy Products Partners

Another rock-solid stock investors can confidently buy if the U.S. were to enter a recession is oil and gas midstream operator Enterprise Products Partners (EPD 0.18%). The company's 7.9% yield almost entirely offsets the highest inflation reading we've seen in four decades.

Although the idea of putting money to work in energy stocks might not sound palatable, with the memory of what happened in 2020 still fresh in many investors' minds, Enterprise Products Partners isn't a driller. It operates transmission pipeline, storage facilities, and refining capacity within the energy complex. Energy middlemen like this typically rely on fixed-fee or volume-based contracts, which means they have little or no exposure to wildly vacillating crude and natural gas spot prices.

Something else to consider about Enterprise Products Partners is that, even during the height of the March 2020 pandemic, which yielded a historic drawdown in crude oil demand, the company's distribution coverage ratio (DCR) didn't fall below 1.6.

The DCR measures the amount of distributable cash flow from operations relative to what was paid to shareholders. Since this figure never came close to falling below 1, this company's base annual payout, which has grown for 23 consecutive years, was never in jeopardy.

A person closely examining a jug of engine oil at an auto parts store.

Image source: Getty Images.

AutoZone

A third extremely safe stock investors can add to their portfolios if a U.S. recession takes shape is leading auto-parts retailer AutoZone (AZO 1.19%). Unlike the other companies on this list, AutoZone doesn't pay a dividend. But that hasn't seemed to matter, with shares of the company higher by more than 27,000% since the early 1990s.

What makes AutoZone so attractive is a confluence of auto-industry trends. For example, Americans are buying new vehicles less frequently. To build on this point, newer vehicles are also designed to last longer. According to the Bureau of Transportation, the average vehicle on the road is more than 11 years old. The implication is that drivers intend to hang onto their vehicles for longer periods, which plays right into AutoZone's core operating model.

The company's success is also a reflection of its distribution network. Instead of relying on vast inventory warehouses for parts replenishment, AutoZone leans on its mega hubs, which are AutoZone stores that carry up to 110,000 different products. These "hubs" act as replenishment channels for smaller nearby locations, and has helped AutoZone avoid the inventory gluts that have affected other retailers. 

If you need one more good reason to trust AutoZone, consider this: The company has collectively repurchased almost $29.1 billion of its common stock since fiscal 1998. 

AstraZeneca

A fourth safe stock to buy if the U.S. dips into a recession is pharmaceutical company AstraZeneca (AZN -0.25%). The company is currently doling out a respectable 2.4% yield.

The great thing about healthcare stocks is that they're defensive. No matter how volatile the stock market gets, or how well or poorly the U.S. economy performs, people still get sick and require prescription medicine, medical devices, and healthcare services. This provides a base level of demand for drugmakers like AstraZeneca.

Innovation is what powers a company like AstraZeneca -- and it's getting that innovation on two fronts.

To begin with, it's seeing consistent double-digit growth from its trio of blockbusters in its oncology segment (Tagrisso, Imfinzi, and Lynparza), as well as high double-digit sales increases from next-gen type-2 diabetes drug Farxiga. Oncology and cardiovascular therapeutics can easily propel AstraZeneca to strong sales and profit growth throughout the decade.

The other component is its acquisition of rare-disease drugmaker Alexion Pharmaceuticals, which closed last year. Rare-disease drug developers often face minimal competition and typically encounter no list-price pushback by insurance companies. If they can get a drug approved by the Food and Drug Administration, rare-disease drugmakers usually become cash cows.