You assume perfection that is not achievable
No.
I assume a business model where a restaurant who causes it’s product to be late either eats the loss instead of a third party delivery service, or it doesn’t get its product delivered.
The option for the customer is of course to not pay.
All equitable, though not perfect.