Don't disrespect how much time & effort DoorDash has spent over the past decade deepening that moat.
1. Marketing & Advertising & Promotions to generate leads
2. Rewards & Subscription bonuses to upgrade customers into premium tiers
3. Social conditioning behavior, like the Apple Pay chime noise
4. 1st Party fulfillment at ghost kitchens etc
5. Multi-year contracts with select restaurants & enterprise customers
6. The logistical challenge of managing drivers / last mile fulfillment
7. Managing customer support / chargebacks / payouts
8. Internationalization, quality control, etc
---
The answer is DoorDash does a lot to keep people on their platform. It is very easy as a developer to underestimate the pull of convenience, enticements, etc., but I think at this point they have proven to work.
The dark realization is that this is both the "secret sauce" and the dark underbelly for many Tech / SaaS companies. Many do not provide that much value at all, and some charge ludicrous prices for what ends up being only a minor convenience.
The price we pay for shitty tech/SaaS usually goes much farther than the overpriced fees they extract from our wallets too. Door dash is hurting its users, the restaurants, the workers, and the quality/quantity of the food we end up getting.
At the same time don't overestimate that stuff. Anyone who actually wants to build a doordash clone should try! One or two may succeed, and there'd be more competition.