Typically best not to engage, you arent gonna win that fight
I once had a guy pull up to cheekily ask "how is a moped like a fat chick" and I responding (having obviously heard before and considered what a shit joke that was) "you wish you had either?" he looked and chuckled a little so I tried again,
"they're more fun together?" "they're likely to be judged by shallow people?"
and he gave me a "you're a strange motherfucker" before leaving without his punchline.
I also have been told I didnt belong on the road while on peds or bicycles, and caught someone heckling a cyclist a few weeks ago with the same lines and I got my self in "if you can't safely share the road with someone on a bicycle, it's not the bicycle that doesnt belong on the roads..." which to be fair i've had mulling in my head since probably the 1st such interaction, and definitely used as an explanation when others, coworkers or whatever, complain about cyclists in the roads etc.