I see two routes to take (sorry, longish answer):
As you can see by the answers and upvotes, (threatening) to cry is a strategy that has its effects — as a woman. Especially in STEM, in which women are still seen as discouraged and excluded, and at universities, in which people and policies are in place to care for them. It is likely that these people will jump on the chance to tackle this issue, which will then lead to serious consequences for the male students. It might even end their education at that school. In this sense, this route — as suggested by other posters here — is a route that will likely work, esp. short-term. And it will likely feel good.
Question is, should you pursue this route?
Despite a strong tendency to ostensibly protect and care for women, there is probably nothing worse for personal growth and the development of competence than paternalistic overprotection. You are not a little child anymore, and one skill you should learn in school and college/university is how to work with diverse groups. And some of these groups develop their own norms and interaction styles, and, yes, some groups even have — for a lack of a better term — assholes in them.
The group you describe doesn’t strike me as bad, though. Esp. when you take gender out of the question, which likely skews the issue, and see it as normal banter. There are behaviors which should immediately lead to a call to the police — the actual police, not the campus authorities. Issues like physical and sexual assault. But here it’s words and in messy social contexts, words are interpreted. You see it as annoying to harassment. I doubt it is intended as such. Looking back at my youth, this banter, teasing and bullshitting was used for bonding. And in a group of technology-minded people that included bonding with women. Yes, this behavior may actually be a sign they accept you as part of their community. (Nobody said that geeks are particularly skilled socially, but hey, they brought us social media, incl. stackexchange.)
Don’t get me wrong, I can totally understand that you do not like these comparisons, and given how negatively you see them, they will feel worse and worse. And if it’s actually bullying, then yeah, this sucks. But that’s your interpretation of what they are doing, and before you ascribe intention there are some questions you might ask. For example, how do they treat each other? Do they tease and bullshit each other as well (not about beauty, but about other issues)? How do they treat other women? What do they enjoy talking about? And yeah, it could even be a — bad — implementation of negging (xkcd explained it well and might provide a role model: https://xkcd.com/1027/ ), or simply being at a loss for words if other topics don’t lead to a conversation. BTW, I’m also skeptical that it would not make a difference if they were to compliment you.
No matter the reason, how can you deal with this situation? You can call a paternalistic authority. It will work in college/universities, it will work later on the job when you call HR, it will even work in private contexts if you shout on social media (sometimes even with work-related consequences). But at least given these situations, I think it’s important to learn to deal with these situations on your own. Become a competent person who is able to deal with bullshitting and social teasing on her own. After all, banter within a community is common, esp. in difficult jobs. It actually does have an important social function (again: banter, not bullying).
As for how, have a look how others deal with this teasing. It is possible to learn how to spar verbally, to parry and strike some (verbal) hits. To return a joke, a tease, and even an insult and verbal attack — and ensure a) to send a clear message that you can deal with these things, verbally and emotionally, and b) that you give back as good and bad as you receive. If there is a serious skill deficit, there are courses, and there are assertiveness trainings — which will pay out in other areas as well (like salary negotiations).
This later route is not a short-time «delegating-the-issue solution» like going to a paternalistic authority. But is has huge benefits long-term and will likely lead to better interactions overall. You might find that other people aren’t as bad as you first think, and you’ll be able to more effectively weed out the assholes and keep them at bay.
And looking at the bigger picture, it would be a pretty bleak world if every social interaction — no matter how benign or misunderstood — becomes the issue for a paternalistic authority. It might curb the (subjectively or actual) bad for a while, and take with it the misunderstood as collateral damage, but in the long-term, it would lead to the peace of the grave. And that’s not what college is for, nor social interaction in general.