Women are more likely than men to leave politics after an early loss