Matthew 15:

Jesus has harsh words for two groups of people.

(1) the Pharisees, and (2) a Gentile woman.

Their respective responses (v.12 for Pharisees, v.27 for woman) to those harsh words could not be more different, and is likely what Matthew is drawing our attention to.