Oda loves shock value
he will do anything so that the readers won't think the protagonists will lose, that's his style
if Luffy was gonna win Oda would've done the opposite, he would've made Luffy victory seems impossible, but even before the raid Oda showed Luffy confident in his victory, and until now Luffy seems in control, that's how the twist will work and bodies start flying