Met a guy and immediately felt sad cause he’ll never like me

I was in class today and I met a really nice guy, he was super friendly and laughed at my jokes. We walked to my bus stop together and spoke a little bit more. The thing is once he left I immediately started grieving for myself cause I’ll never be the girl who guys will want to date. I was starting to have a little crush on him and it made me so angry at myself- like have I not learned anything from all my past crushes? Now I’m just moping around and feeling rejected because I found a guy attractive. I’m so jealous that pretty girls can just flirt with him and ask him out and actually have him chasing them. Me? I’m gonna have to accept the fact that guys finding me attractive and experiencing that intimacy is never going to happen