Your second example, however, damages primarily the restaurant, as the customer has attempted to disintermediate Doordash, but is doing so with incorrect information. The restaurant's best defense here may be communication, informing the buyer of the price, and correcting misconceptions, at the time of ordering.
As quipped eloquently in another thread here, "Move fast and break other people's things" may work in the short term, but lawsuits and grumpy attorneys-general seem like they could catch up to a bad actor pretty quickly when there is real money on the line.