Boyfriend making a comment

Right I need some advice , we were at a friends bbq and one of the teenagers made a comment saying that the prettiest girls are the dirtiest and my boyfriend went to say yeah (his girl best friends name) . He basically said she was prettiest and I was right next to him. The girl called him out and said your girlfriend is right next to you and I feel so shit now like who says that 😭😭😭