We had a situation like this, had a pax die around 2 hours into a 10hour flight, the death was confirmed by a Medical Dr who was onboard and the appropriate paperwork was signed. Yes we could have turned back and offloaded the body but it would have been cruel to do so, you see this person now deceased also had family members onboard who were all resident in the port of destination not departure. How cruel would it be if we had diverted and returned to offload the body and then we would have had to offload the family as they would presumably want to be with their loved one. Then they are in a foreign place with a dead relative having to figure out what the hell to do next. We continued and yes some other pax complained but hey, toughen the hell up, what was important her pe was he needs of the family concerned, we placed them in a couple of rows by themselves (business class) with the deceased and moved the miffed business pax back into economy. To this day I know it was the right call, some went to local media with the usual crap but was very pleased when the Widow came out and said how grateful she was for our compassion and consultation with them in making our decision.