"The two phrases have nothing to do with each other."
15: Yet the Lord set his affection on your ancestors and loved them, and he chose you, their descendants, above all the nations—as it is today.
So God is not against partiality. He chose the the Israelite above all other nations. That's partiality.