The evidence that changing PM can help win you a majority at the next election is, shall we say, mixed.
Yes: Eden to Macmillan, Thatcher to Major, May to Johnson.
No: Macmillan to Home, Wilson to Callaghan, Blair to Brown, Cameron to May, Johnson to Truss, Truss to Sunak.