Hey... we ALL get jealous from time to time. I'm even jealous of you, because you actually get to TRY for another (I'm not only banned medically, but my H and I aren't on good terms).
There's all the common sense "be happy with what you've got" stuff we all know how to do (especially those of us who have kids, because we have to drill it into them for years... btw... whenever I want to throw a tantrum, or I get jealous, or _________, I've found it to be an *amazing* parenting tool, because it makes me remember what overwhemling emotions these things can be, and they're *all* overwhelming for little ones).
That said... I like to do 2 things when I'm feeling jealous/depressed:
1) Play the "control" game
2) Play the "lotto" game
1) The "control" game is sitting down and thinking about what is in my control and what isn't. ((Similar to the whole God-flood-man-on-roof-canoe-rowboat-speedboat-coastguard-helicopter-man-drowns-asks god why he didn't save him-god replys-what do you mean, I sent you a canoe, a row boat, a speedboat...)). Anyhow, I sort out exactly how much I could be doing, and how much I already am. If I'm already doing everything I can be, I growl but relax. If I'm trying to control things outside of my sphere (other people, etc.) I back up. If there are things I COULD be doing but am not, I sort out the reasons. It's all very liberating.
2) The lotto game is the whole: I've just won x# of millions of dollars. What would I be doing??? Which helps me sort out what my goals are. LOL... they won't happen as FAST as if I had a blank check, but I can durn well start working on them. So what would YOU be doing differently if money were no object? My guess is that you wouldn't jump into tens of thousands of dollars worth of fertility stuff for another couple years. So what WOULD you do with it?
ALSO One of my favorite quotations EVER is this:
"I can't control the FIRST thought, but I can control the 2nd."
Sounds like you've already started this. Instead of just getting pissy, you congratulated your friend. You AREN'T happy with her right now, but you have decided both not to blame her AND to try and stop feeling a way you don't want to be. That's HUGE honey, and big hearted, and kind. Not selfish at all.