Are you imagining that DMs wait until the players have their PCs do something suicidal and then say, "Gotcha! Your character is going to die now. Muahahahahaha!"? Because in my experience the DMs, including myself, inform the players in advance and if the players then make the decision to do it...