It would seem during the Spanish flu your best chance of survival was being in a location where strict quarantine and travel restrictions were imposed so the health system was able to cope with those who did contract the virus.
The places with the highest fatality rates were those with poor or non-existent health services or where people didn't seek medical assistance.
The mortality rate in the US was around 0.5%, <1% in East Asia, but 5% in India and as high as 20% in some Pacific nations. Iran's current Covid-19 mortality rate is quite comparable to the Spanish Flu around 14%.
"In 1918, doctors lacked intensive care units, respirators, antiviral agents, and antibiotics, an important fact in light of historical evidence of interactions between influenza and secondary bacterial respiratory pathogens (e.g., Haemophilus influenzae) as a significant cause of death during the pandemic." https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2374803/
The misnamed Spanish flu seems to have killed by triggering a strong immune response. That response is called a cytokine storm. Which means that the stronger your immune system, the more likely you were to be hit hard. It therefore killed the reverse of the groups that normally get killed by diseases.
There is also some evidence that people who experienced the "Russian flu" of 1889-1890 had some level of protection from the Spanish flu.