Actually in the movie Bunny didn't believe in the concept of marriage(and love also I guess), so he was probably flirting with Naina too.
Btw, if this is a comparison with Judwaa 2. Then that "Khatara Gaari" dialogue was used to generate laugh from the audience I guess??(Sorry, I haven't watched the movie).
Well, objectifiying a women isn't funny. Oh yeah, I know there is a genre called Black Comedy. But a movie like Judwaa 2 which promotes itself as a family movie, shouldn't have such sexist dialogues as punchlines.
YJHD was a different genre. The characters in the movie were not perfect. They were more real and layered. It's not about the sexist dialogues used in a movie, it's about in which context they are used.
42