Let’s be proper with the text: God is indicating that as He treats us all on an equal basis, so He wants us to also treat all others as He treats them. Distinction is not based in origin, ethnic diversity, education or any other created diversity. When the Lᴏʀᴅ is looking for a leader of His people, He gives the prophet Samuel a new view of worth:
There is an intrinsic value to each created individual that God insists not be disregarded by deceit. Whether it is in commerce—the weights and measures or social justice, God is specific,
The distinctions came in the relationship of the individual to God as is duly noted,
After the Jews came back from captivity in Babylon, they no longer were tempted by other gods of the nations but God did need to re-emphasize that the equality was to be towards those in agreement with His covenant no matter their personal circumstances.
When Ruth came home with Naomi, she was accepted into Israel as she committed to the terms of the covenant. Ruth was of Moab, one of the neighboring nations that harassed Israel, yet she was accepted and became an ancestor of Jesus.