Before I get into this, I AM NOT A NECROPHILE!
Alright, with that out of the way, having sex with a dead person is not that bad. Dead people are, well, dead. Their bodies are totally useless. Either donate them to science or donate them to people who will use them. Necrophilia is certainly not good, but it’s better than rape. Giving dead bodies to people to have sex with will stop prostitution, rape, and many other even more heinous acts. Dead bodies can not feel. All we do with them is bury them or burn them. I guess this is a good example of the ends justifying the means.