Over the last year, Starbucks' (SBUX 0.53%) and DoorDash's (DASH -2.24%) stock prices have taken divergent paths. The former gained 9.7% while the latter lost 25.6%. Both, however, trailed the S&P 500's 13.1% rise.

That's in the past, of course. Investing is about the future. Each is at a different stage in its development, but which company provides a better return opportunity?

Man in car picking up delivery bag from worker

Image source: Getty Images.

A coffee purveyor

Starbucks is known for selling coffee, although its offerings include other drinks such as tea. Beverages account for three-quarters of revenue, although it also sells some food items. While its restaurants are split about evenly between company-owned and licensed locations, the former accounts for more than 80% of its revenue.

Last year was challenging with revenue falling from $26.5 billion to $23.5 billion. This covered the period that ended on Sept. 27, 2020. However, management estimates that COVID-19 caused sales to fall $5.1 billion versus its expectation. On the bright side, the company used the opportunity to improve its store efficiency, including introducing the Starbucks Pickup format that allows customers to use the mobile app to order and pay before getting to the location.

I'm encouraged by recent results. Starbucks' two biggest markets, the U.S. and China, continue to improve, with second-quarter same-store sales (comps) increasing by 9% and 93%, respectively. Clearly, its customers remain loyal with U.S. active reward memberships increasing by 18% to 22.9 million.

Management still expects comps to increase by 18% to 23% for the year. But it upped the company's earnings guidance, with the midpoint at $2.70, $0.18 higher than management's previous outlook.

Making food delivery easier

DoorDash enables brick-and-mortar businesses, particularly restaurants, to offer easy and fast delivery. It has 450,000 merchants on its platform that connects to over 20 million people. The company is expanding into new areas, such as DashMarts, which are convenience stores that deliver mostly everyday items.

Judging by its revenue growth, clearly, its service has increased in popularity. DoorDash's revenue was $2.9 billion last year, a tenfold increase compared to 2018. But profitability has proven elusive, with its net loss more than doubling to $461 million during that time.

Recent results were more of the same in the first quarter. Revenue tripled to $1.1 billion, but losses only narrowed to $110 million from $129 million. Management doesn't provide guidance on the bottom line, but it expects adjusted EBITDA to come in at breakeven to $300 million for the year. This compares to $189 million last year.

The decision

DoorDash faces formidable competition, including Uber Technologies' UberEats. Additionally, while people have been ordering in during the pandemic, that'll likely decrease as restaurants lessen restrictions and people go out after being cooped up for so long.

On the flip side, Starbucks, after the pandemic hurt last year's results, has seen its top line ramp up. This seems likely to continue as it draws more customers as things return to some semblance of normalcy.

For me, in the battle between these two companies, Starbucks is the clear winner.