Impotence means that one has the inability to perform the sex act at all, meaning that the non-impotent partner is putting themselves in a situation where they will have an even greater temptation to commit adultery.
Sterility (due to cancer, surgery, etc) doesn’t affect the function of the sex act itself, just the result (conception).
That’s the difference, imo.
Thanks, Tamar.
Ed