It all depends on what you want your sword to do. If your goal is to deal extra damage to undead mobs, go with Smite. If you'd rather push mobs back and create space, Knockback is the better choice.