The juxtaposition of this text from James with Mark’s story of the healing of the Syro-Phoenician woman reveals a wicked sense of humor on someone’s part. The passage in James begins with an assertion of the fundamental incompatibility of faith in Christ, the Lord of Glory, with partiality in human relations. It then goes on to list a variety of ways in which believers might typically display such favoritism.
When I was in first grade, teachers assigned students to reading groups based on how well they could read. They would name all the groups after birds so that everyone would feel equal, but you could always tell how well you were doing by what bird your group was named after. There were the Eagles, the Robins and the Pigeons. The Pigeons were not reading War and Peace
In the first half of Mark 7 Jesus says that you can’t judge a book by its cover; you must look beyond external factors like nationality or religious heritage or social position to get the real story on someone’s faith.