the sidelining of Szydło has been massively unpopular with the younger female electorate.
PiS basically did a bait and switch using Duda and Szydło to lure naive young voters with the promise of a new start only to revert back to form (and then some).
They couldn't possibly make it clearer that Duda is a figurehead who's supposed to do whatever JK tells him and that Szydło isn't even that.
I'm not sure if they'll last four years but they're burning a lot of bridges and souring a lot of young voters on the very idea of democracy. A shameful legacy is what they'll leave, I expect.