Parochial altruism
Helping those inside your own group while being hostile to those outside it. The book links it to the slogan 'cooperate to compete'.
From Érdi, 2020, p. 53. Érdi, P. (2020). Ranking: the unwritten rules of the social game we all play. New York: Oxford University Press. ISBN 978-0-19-093546-7. DOI 10.1093/oso/9780190935467.001.0001. (The copy's copyright line reads 2020; Crossref gives 1 October 2019 for the print date.)