What was Sanji gonna do? Increase his doesn't durability? Because people go into fights mentally making their flesh weaker than they'd like it to be? Whether or not he knew it would break his leg wouldn't change whether or not it could. You could say he would have used Haki, but so would Vergo.