According to GL, Vader and Palpatine planned it out in advance. They wanted him and Vader to fight each other and use that to finish his turn. If Vader didn’t block the blow, Palps would’ve done so himself with the Force and gone, “Bruh did you miss your cue?”.
So… “it was a trap!” 😄