@PlanDeRaccordement
So, a DNAR does complicate matters. Generally speaking, we will do everything to avoid taking a person with a DNAR to hospital as that is usually against their wishes. If they are clearly at the end of their life when they arrive, we will stay and support that process (make them comfortable with drugs)
In the case of expected death, If they have died, either warm or cold, we will leave the patient for the GP and undertaker to deal with. The coroner isn't involved and they don't go to the mortuary, they go straight into the care of the undertaker.
If the death is unexpected and we are not working on the patient or stopping work, we will also leave them on scene. The police come to act on behalf of the coroner, they examine the patient and arrange for transport to the mortuary. This is not ever done in a front line ambulance, for lots of reasons, the chief one being that you can't just turn up at a mortuary, you have to be expected.
If the patient has a DNAR and dies on the way to hospital, we obviously will not work on them, but will take them in to A&E. From there they will either go to the hospital mortuary, the public mortuary or to an undertaker. (Most likely straight to the undertaker)
Caveat: I am only speaking for London Ambulance Service and SECAMB. But I doubt it is too different elsewhere. The Quora article is incorrect regarding LAS and SECAMB though.