They tried this experiment in India by building ONDC (https://ondc.org/). The take-up is limited even with lower pricing. Turns out fulfillment is a hard problem to solve!
Food delivery companies like DoorDash have much better control over their logistics chain, and that really matters, especially for short-haul deliveries. Customers are unforgiving when it comes to food.
Yes, there is the usual anecdote of someone being able to call a restaurant and reliably getting its food delivered, but that's becoming increasingly rare.