If the prime minister had stayed on, he would have inevitably struggled to manage his divided party and minority government.