Yeah but Jesus didn’t say, “Oh you poor thing, you’re not a dog. You are a winner!” He played along.
His answer was perfect. An acknowledgment to future Gentile followers that their faith in him is great, and acceptable to him.