From what I read the HARM (and all anti radiation missiles) wasnt particularly good at tracking a moving target. Especially another aircraft closing in fast that is manuverable.
As for IR missile options beyond the Sidewinder the US never really invested in any longer range IR missiles like the Soviets did as part of their overall effort to go big in IRST (which didn't seem to pan out all that well to my knowledge).