Every person is an end in themselves. That's universal. To respect that leads to flourishing. Not respecting it in extremes leads to unnecessary death.
Survive in such a way that you avoid limiting others who are also trying to survive. We all live in limited systems. This is the core of ethics.
No subgroup, race, nationalism, religious group, gender based groups or other identity essence based groups will ever be more important than, and should never ethically take precedence over the existence based universal group, the human group. Universal identity takes precedence over subgroup identity, and when we are forced to subgroup in reaction to injustice, that is the only ethical subgroup.