↩ Miwojedk From an organizational point of view, the restaurant bears the responsibility for the delivery driver's mistake. But the question wasn't if the delivery driver would be held responsible, but if it is wrong to accept the food, and as such I argue that you are likely to inflict more harm by accepting it than by declining it.
As for your second point, the person accepting the food should know it wasn't meant for them because they didn't order anything... If someone has for some reason sent you food without letting you know, the delivery driver will come back around after confirming that it was in fact the correct address.
The delivery driver leaving the food at your doorstep is not a comparable situation because you are not given the option to accept or decline it. If they do not want to pick it up again because it has gone cold, you had no hand in that chain of events.