Even when you get eliminated, you receive valuable intelligence that you can share with your team. Your remaining teammates can take advantage of knowing how you died, and, in the best cases, they can kill your executioner.
Someone needs to be the first player through the door, but that person also usually dies first. If a death results in learning the location of the enemy, that death can still help the team. Make sure to use every death as an opportunity by making valuable callouts of how you died and from where.