It is unlikely that this young woman will change. It is pointless to continue to try to make her understand the impact of her negative attitude and behavior. From her point of view, she is perfect and everyone else needs to conform to her standards. It’s interesting to me that the names she calls you are more properly applied to her. Maybe she knows that on some level. Maybe not. She does seem to need to feel like she’s superior in the relationship.
You don’t have to walk away literally. But for your own peace of mind, you do have to take her as she is and distance yourself from her comments. If you can’t do that, then the kindest thing you can do for yourself is to put distance between the two of you and only deal with her socially when you have to.
Please don’t criticize yourself for having befriended her at first. Often when people go to university or to a new place, they befriend whoever is available and friendly. When people are a little scared or lonely, they overlook flaws and are just grateful for company. As you got more comfortable with your new situation and began to get to know other people, you also began to see her more clearly and to rethink whether you wanted her to be your friend. This is a normal part of growing and maturing.
I wish you well.