If a President has immunity for using the powers of government to undermine an election, why did Nixon resign?
Because Nixon was informed that there were sufficient votes in the Senate to convict him in an impeachment trial.
I don’t believe there was ever any talk of a criminal trial.