Baruk Khazâd! Khazâd ai-mênu!
Axes are good against mobs that don't require much thought to kill. Like zombies, who are slow mobs who come straight towards you, only have melee attacks, and only have advantages in numbers and health.
Swords are good when something's coming at you quickly, or when you need to kill something without too much weapon cooldown.