It seems almost sacrilegious to make such a comparison. Coca-Cola (KO 2.14%) is one of Warren Buffett's longest and most popular investments. Indeed, if you own shares of Buffett's Berkshire Hathaway (BRK.B 1.30%), you are indirectly buying a piece of the world's most popular soda.

But today, we'll be seeing which company is more worthy of your investment dollars.

Two Coke bottles sitting in front of a old-time sign describing Coke's benefits.

Image source: Pixabay.

Of course, that's not a question that can be answered with 100% certainty -- as the future is completely unknowable. That being said, there are a few lenses through which we can approach the question that give us the ability to better decide for ourselves. Here's how these two stack up.

Sustainable competitive advantages

I won't beat around the bush: a company's sustainable competitive advantage -- often referred to as a "moat" -- is the single most important thing for an investor to research. A moat is that special something that keeps customers coming back year after year, paying incrementally more each time, while holding the competition at bay.

Coke's primary moat comes from the power of its brand. In fact, it is one of the most recognizable brands in the world. Interbrand ranks Coke as the third most powerful brand in the world, worth an estimated $73 billion.

At the same time, the health concerns regarding the company's eponymous drink have also caused sales in North America to slip over the last few years. While the company does own a number of other non-soda brands -- Dasani, Powerade, and Honest Tea, to name a few -- there's no denying that soda-drinking is waning.

Berkshire Hathaway, on the other hand, has so many businesses that it's tough to decipher all of the moats. The company's insurance wing benefits from somewhat high switching costs and some very powerful brands -- namely, GEICO. The railroad, energy, and utilities section of Berkshire benefits from high barriers to entry -- via both regulatory approval and sky-high infrastructure costs.

There are a host of other well-known names in Berkshire's portfolio -- Duracell batteries, Pampered Chef, and Dairy Queen are some examples. The bottom line is that while Coke certainly has a powerful brand, Berkshire has such a strong diversity of moats, it's tough to beat.

Winner = Berkshire Hathaway

Financial fortitude

While investors usually love to see cash being returned to them in the form of dividend payments or share repurchases, it's vitally important for a company to have a sizable cash stash on hand. That's because every company -- at one point or another -- will have to face difficult economic times.

Companies with cash on hand have options. They can buy back even more stock, make acquisitions on the cheap, or -- most importantly -- outspend rivals to gain market share. Debt-heavy companies are in the opposite boat, made fragile by their tenuous economic situation.

Here's how Coke and Berkshire Hathaway stack up in terms of financial fortitude, keeping in mind that Berkshire is valued at over twice the size of Coke.

Company

Cash

Debt

Net Income

Free Cash Flow

Berkshire Hathaway

$260 billion

$102 billion

$24 billion

$20 billion

Coca-Cola

$40 billion

$30 billion

$6.5 billion

$6.5 billion

Data source: Yahoo! Finance, SEC filings.

Both companies actually have very strong balance sheets and record prodigious amounts of free cash flow.

But in this realm, it's difficult to beat Berkshire Hathaway. Indeed, one of the company's greatest strengths is its balance sheet. During the Great Recession, many big-name companies called upon Berkshire to lend them money in a pinch. Because of its enormous cash stash, Buffett could do that -- and extract a large sum for doing so.

That's what real financial fortitude looks like.

Winner = Berkshire Hathaway

Valuation

Finally, we have valuation. While this isn't an exact science, there are some straightforward metrics we can consult to give us an idea of how expensive each stock is.

Company

P/E

P/FCF

PEG Ratio

Dividend

FCF Payout

Berkshire Hathaway

24

21

2.5

N/A

N/A

Coke

22

28

7.6

3.5%

93%

Data source: Yahoo! Finance, E*Trade. P/E represents figures from non-GAAP earnings.

In this realm, things appear to be a lot closer. On an earnings and free-cash-flow basis, Coke and Berkshire look relatively closely valued. Income investors might not be happy with Berkshire's lack of a payout, but they should also be aware that Coke has used 93% of its free cash flow to pay its hefty dividend over the past 12 months -- flirting closely with being unsustainable.

In the end, I'm going to call this one a wash, as neither is demonstrably cheaper than the other.

Winner = Tie

The winner is...

So, there you have it, Berkshire Hathaway is the runaway winner. The company's moat -- provided by a bevy of valuable brands, stable businesses, and high barriers to entry -- bests one of the strongest brands in the world. And Berkshire's financial fortitude is difficult to match outside of some well-known technology companies.

While investors might fret about Berkshire's lack of a dividend payment, I still think it's worthy of consideration as an investment.