You don't. You'll always be envious. But remember. You have qualities that surpass theirs. So relax.
Also, as a man of transcendentalist thought, true knowledge doesn't come from books, it come from the ability to make relationships from the things you observe from your surroundings. How is knowing Washington Birth date ever going to help you in life? Read Walden by Henry David Thoreau and you'll start to feel more intelligent than what society has deemed intelligent.
This is my belief.
Envy is a natural human emotion. It comes from a lack of respect for your friend that stems from the anger of your short comings. Accept defeat and respect your friend. Tell them that you respect them for their "knowledge" and move on. You have better things to worry about.