Rejection is part of the process of mate selection.
Everyone is going to reject people, because certain individuals do not tick the required boxes on the other party's criteria sheet. That is how it should be.
When I was your age, it was not rejection that bothered me as much as when I saw the same girl later with a male who looked as though he was homeless and slept in a park, dragged his knuckles on the ground and did not have two IQ points to rub together. Or, a male who was exactly what one would expect an oily nightclub player to look like.
This was before the Internet existed, so it took me a while to figure out the bad-boy fixation that most females have between the ages of about 15 to 30.
Young women thrive on the rollercoaster ride of heartbreak and drama that comes from choosing the company of players and sociopaths. They use the words 'fun' and 'exciting' to describe such men.
I cannot suggest anything more helpful than to take a different perspective of the rejection.
That female just saved you time and money, by crossing herself off your prospect list.
If, as most girls in your age range do, she prefers the company of players and sociopathic bad boys, then you just dodged a bullet.
That will not fill the ache in your empty heart (believe me, I know what that feels like), nor will it give you the sexual release that you crave; but the alternative, which is to be involved with a woman who actually wants Mr Harley MacBadBoy, or Iva Necktattoo, is even worse.
About the age of 30 I gave up on the whole project and walked away from having anything to do with women. I am not suggesting that you do that, I am just saying that was my response to almost two decades of being rejected in favour of obvious players and sociopaths.
It is not possible to observe that sort of demonstrated group preference for years without forming an unflattering opinion of the female cognitive process.
At your age, the passions are more intense, because your balls are pumping out a huge quantity of testosterone. This causes you to be blind to a lot of things about female nature. As you grow older, probably about age 30 to 35, you may well see things differently.
It is at that point that more than a few men thank the imaginary sky friend of their choice for helping them to dodge a bullet, then they go their own way. It is at that point that most of the MGTOW are born.