Boyfriend always compares me to one of his friends help

So the other day I was talking about going on the pill and I made a joke saying Awh be cute to have a baby and he was like no it wouldn’t you would be getting an abortion if you got pregnant and I told him I would never do that as it’s my personal preference that I just would never have one and he was like well Stacey has had loads and she isn’t bothered why can’t you just be like her. Or if we’re going to a club and I want to wear a dress he is like Stacey wears jeans to the club so why do you have to wear a dress I’m constantly being compared to this girl and she’s not even a nice girl to be compared to she’s a horrible nasty girl. What can I do