This passage involves a Canaanite woman who was not a Jew who had sought him to heal her daughter. He replied that he was only sent to Israel. Now, when she demonstrated great faith and resolve, he healed her daughter in the end but, the point was made that he was sent only to the Jews.
So, it follows that Jew/Gentile distinction must be taken into consideration when interpreting the New Testament scripture. This is especially true of Jesus instructions. Always keep in mind that the audience is made up of Mosaic Covenant Jews. It is important to remember that there is a transition happing in the New Testament writings and, the narrative is moving from John the Baptist, the last Old Testament prophet warning that the axe is already laid at the root, to the ministry of Jesus announcing his kingship and kingdom’s arrival, to the cross and resurrection, to Pentecost when the Jewish believers received the Holy Spirit, to Cornelius home where the Gentiles received the Holy Spirit, to Paul’s writings explaining the concept of the new creation. It is quite a transition indeed.