Panera vs. Chipotle: A tale of two restaurants

What Panera can learn from Chipotle

Panera Bread and Chipotle have both made names for themselves as healthier fast food chain restaurants, but lately the companies' performances and stocks have diverged. So what is Chipotle doing right and what is Panera doing wrong?

"I call it death by a thousand cuts. I think Panera Bread ... has been considerably more differentiated in years past. I think a lot of competitors have tried to steal some of the specialness of what the concept has," Bob Derrington, restaurant analyst for Wunderlich Securities, said in an interview with CNBC's "Closing Bell."

"It's dinged their business,"

Read More Panera to overhaul menu, ditch the fake stuff

a 4 percent decline in its second-quarter profit on Tuesday. Sales at company-owned bakery cafes open at least 18 months inched up 0.1 percent. Analysts had expected a 1.6 percent rise, according to Consensus Metrix.

Scott Eells | Bloomberg | Getty Images

Chipotle, on the other hand, last week reported second-quarter earnings that beat Wall Street expectations. Net income rose $110.3 million, or $3.50 per share, compared with $87.9 million, or $2.82 a share, a year earlier.

Revenue increased to $1.05 billion from $817 million.

Read MoreChipotle tops Street forecasts; stock jumps

"Chipotle has been able to differentiate itself. ... It has pricing power," said Wedbush Securities' Nick Setyan. "Its business model is conducive to just moving that line faster and faster so they can drive same-store sales gains."

Panera is not in the same position to move that line faster, he added.

However, Panera is turning to technology to help improve customer service and get more patrons in the door with what the company calls Panera 2.0. It is adding kiosks and a smartphone app to allow customers to place orders, and Setyan thinks that will help.

Read More New technology answer to Panera's problems: Analyst

There has been a double-digit sales lift in the markets where it is being implemented, he noted.

"It's just a matter of time until we see that being rolled out throughout the United States," Setyan said. "When it does, I actually am expecting to see same-store sales come right back."

—By CNBC's Michelle Fox. Reuters contributed to this report.