I get it. The point is, Jesus wasn’t afraid to call a name or characterize people, that it would “hurt heir feelings” if He spoke the truth.
Yes, you’re right. Good comparison.
He already knew she was a sharp cookie, from her first question, and later statements. I think he was provoking her, to see what she would say. And of course making a powerful statement about Jews vis-a-vis Gentiles.
Like Trump’s comments, it brought more attention to his name and his message—in this case, for all time.