I gave up on girls today because I have no chance with any girl. How can I not think about girls anymore and not care?

I'm almost 19. I have never had a girlfriend and will never have a one. I'm bullied, ugly and more. Girls have always rejected me or they always had a boyfriend. How can I stop caring that girls won't like me. They never noticed me in school. They will not notice me in college too. It's obvious. Help me please. Such a shame that I will die a virgin.
I gave up on girls today because I have no chance with any girl. How can I not think about girls anymore and not care?
Post Opinion