If you only care about survival and nothing else in the short term, then AFSFSM can lead to tribalism. It doesn't necessarily lead to tribalism if you care about long term survival and happiness. Unless one wishes to do nothing but hunt, forage and defend oneself and family, then one is dependent on far more than a small "tribe" for general happiness. We depend on farmers to produce food, migrant workers to collect it, carpenters to build homes, police to protect us, artists to create forms of entertainment, people in other countries to build electronic devices, etc. Caring for all of those people and so many more, of whom we are unaware, that contribute to our well-being makes perfect sense. Your argument seems to have a flaw with the use of only the word "survival" which does include concepts such as "happiness" or "flourishing", etc. If you include something along the lines of "well-being" to your formula, it might lead to a conclusion more in line with your original thinking.