That is allowed. It is even possible that on rare occasions those who disagree with me are right.
I’m not sure it follows that if lives of those outside the tribe are not precious but those inside are, that you are free to kill the outsiders indicriminately.
This illustrates some of the contradictions in the Bible that permits people to do all sorts of things and claim Biblical sanction. I say that because the Bible cites Jesis as saying that those who will not accept His message are condemned to intolerable punishment (Matthew 10:14-15)
It is clear to me that the God postulated by the Israelites is solicitous of their welfare (as long as they strictly obey His rules) and cares little about any other group. This isn’t surprising to me because the Bible is based on Israelite history and that was probably also their attitude in that crude and savage time.
The Bible unquestionably divides people into categories according to their worth as measured by the contemporary standards. The death penalty is mandated for certain types of homicide but not others. For example, if someone strikes his servant resulting in immediate death, the killer is killed. But if the slave suffers through a day or two and then dies there is no punishment because the servant is the property of the killer (Ex 21:20-21).
You are free to interpret the Bible as saying that God is solicitous of all people, but that is only your interpretation. Others don’t agree and can point to examples in the book itself.