Jacinda Ardern’s resignation shows that sometimes it’s right to walk away