This is a tough one and many times I’ve started a reply but then not posted it.
There are some people out there who have no social skills - they either lack the brain-to-mouth filter that should stop them in their tracks before they say stupid things, or they didn’t have good parenting that would have taught them to think before they speak or not to say rude things or whatever. Or perhaps they lack the ability to “read” a situation for appropriateness. Or perhaps they are very technical in their thought and actions and don’t see their statements as being critical or judgmental or rude. Perhaps they think someone like the OP is too sensitive because they really did not intend to be hurtful. Or maybe their attempts at humor are so lame that they come out as insults.
I know people like this. I try to have compassion for them because I really think they are clueless in some aspects. In some ways I appreciate the honesty because you always know where you stand. There have been times that I have been miffed or hurt by their statements, yet I also know the soft and tender side and can see their pain even though they may not share it with me. One of my former co-workers was like this. She rubbed everyone the wrong way and had lots of complaints about her. At first I found her abrasive and mostly steered clear of her. As I got to know her, I found her to be refreshing and honest and we had some really amazing conversations and a shared connection that went beyond the superficial. I could still see her abrasiveness and how she put people off - heck, one customer even yelled at her one day - but in her heart she was a really good person, even if her delivery was way off.
OP, maybe lighten up on this person a little bit. Maybe realize that somehow, unbeknownst to you, this person is hurting. You don’t have to be her best friend, but you don’t have to be unkind. Just recognize that somewhere in there is someone who might like to have a friend or be understood or need help with her social skills.
Who knows, you may actually end up being friends and you can laugh about this next year.