Fighting to the death and mating are not the same!
There are a number of species where the female eats the male after mating - examples such as praying mantis and octopus. Both octopus males and females die after mating, the female after having protected the eggs, so it makes sense that she sometimes eats the male too (who is going to die anyway). But, examples like this are relatively rare, and for species specific reasons.