Restaurants have to pay an arm and leg (often around 1/3 of revenue) for prime real-estate; or pay higher wage in more prosperous places.... is it fair?
In the end, restauranteurs who are good at this business will thrive and those who are not good at it will falter. Google/Yelp/DoorDash just provides additional dimensions for restaurants to compete in. And as always, when new technologies emerge, there are winners and losers.
In this wave of change to restaurant industry, the winners are actually smaller restaurants at cheap locations who are previously invisible to most potential customers but now are on equal footing with restaurants at prime locations in terms of exposure. And in the long term, it'll shift restaurants' expense breakdown, and those who pay too much rent will struggle because they don't have the budget to pay for online exposures.
It doesn't mean the restaurants paying less rent will be more profitable, the money simply goes from landlords to tech companies. And as long as restaurant industry is a fiercely competitive market, profit margins will remain low.