If you fight characters you've played as before when they're enemies, they don't die, they just retreat.
But be aware that the death immunity only applies to the characters when they are the enemy: Your units will still die permanently/retreat permanently if they are defeated.