Jealousy or envy is wasted energy, because everyone is having some kind of struggle, even if you can't see what the downside of that person's life may be.
I would also suspect that your friend probably doesn't "perfectly" pass. I don't think there can be a person with even mild autism enough to meet impairment criteria for diagnosis who could possibly be "perfect" at passing, at least not all the time.
Personally, in my own case, I've assumed of myself that there are times when, with effort, I can attempt to "pass," but I've begun to realize, upon analysis of my own life, that historically I probably didn't pass as well as I believed I did, on many occasions and in many situations, and that this is still the case.
If you think you see your friend passing for NT with a lot of skill, perhaps what you don't see is that later he or she "pays for it" in the form of mental exhaustion, shutdown or meltdown back at home, irritability back at home, and other fallout from the effort of the acting job they just performed.
Or that they are not fooling everyone all the time, and if you were to ask the other people who know your friend, you may even find that they admit sometimes they think he or she seems "off" in some way, if they really know the person well.
I also agree with the person above who said there is actually a beneficial side to not passing well.
When you can't pass for NT or maybe can try but don't, the good part is, people do take your autism more seriously.
They at least believe you because they clearly see you have some issues, behaviors and challenges.
The good side of seeing that is that some people will in fact assist you more readily in a number of ways. Or even just believe you instead of scoff at you if you're a so-called high functioning and you try to share that you've been diagnosed.
Of course, the downside to being more obviously autistic is of course bullying and abuse from those who are cruel.
But the downside to someone "passing" can also be a bit cruel in terms of disbelief, dismissal of your claim that you are on the spectrum, refusal to assist you with something that DOES come up as a genuine challenge, refusal to accommodate you with sensory issues or in a tough situation for you.
There are downsides and benefits to "obvious" autism and there are downsides to "passing" too, and personally I think the upsides to passing are not actually "real" or very healthy upsides, not in the longterm.