Two things Saggabai.
Firstly, Palestinians are the Phillistines.
Secondly, with regard to "outside children don't count in establishing a new path", God in his infinite wisdom chose Judah's outside child who was the result of Judah screwing his daughter in law on the roadside to establish Jesus genealogy.