The question "Who is Macbeth's true nemesis—Macduff or Malcolm?" contains a category error. Shakespeare does not choose between them; he assigns them complementary dramatic functions.
Macduff discovers Duncan's body, flees to England, recruits Malcolm, leads the invasion, and personally kills Macbeth in single combat. He is the instrument of nemesis in the classical sense: the bringer of deserved punishment. His motive is personal (family slaughtered) and patriotic (Scotland freed).
Malcolm represents legitimate succession and political order. He tests Macduff's loyalty, secures English support, and assumes the throne after Macbeth's death. His role is dynastic, not personal—he never confronts Macbeth directly.
The play needs retribution (Macduff) and restoration (Malcolm). Together they dismantle the tyrant and rebuild the kingdom. Shakespeare's genius lies in dividing the nemesis function between two characters who embody different kinds of justice—one backward-looking (punishment), one forward-looking (renewal).