The case for Iron Head
- It is a Steel STAB move, so it does more damage when coverage is not needed.
- If you need coverage, you can switch out instead.
The case for Sacred Sword
- Shadow Sneak already gives you a Ghost STAB move, and after a few Swords Dances the STAB boost matters less.
- It adds type coverage, so you do not have to switch and lose your boosts.
A good way to choose is to think about the threats you face. If Steel-resistant or Dark-type opponents give you trouble, favor coverage. If you mainly want raw damage, favor STAB.
This is a competitive choice and depends on the game and its rules. Both answers in the thread were personal opinions, so test it on your own team.