Both are weak to elemental so best to get yourself an elemental sword such as an Avenger/Divine Avenger. Also, I've heard that the Combustor and Glacious both work well against undead and constructs, I haven't tried it myself though.
Personally, I like the Ash of Agni since zombies, retrodes and mecha knights burn very nicely. Also they are slow enough that you can weave in and out to get good bomb placement so that the small initial elemental blast hits them.
Armor is a little trickier since they can do different types of damage. You should be fine just concentrating on Normal/Elemental defense mix. Undead can do shadow damage, but all their attacks can be easily dodged or blocked with practice making the shadow defense unnecessary.