Which armour would be more beneficial when farming the Moon Lord?
Solution 1:
The question as worded is opinion based. You might want to ask what armor set gives most damage or something similar.
However, Spectre armor does not benefit from life steal against the moon lord because of his moon bite debuff. This would make it effectively 40% reduced damage and no healing which is next to useless.