Even today mortality rates in rural areas are higher then urban ones which made me wonder how much more profound was that difference in the past. I'm mainly wondering about the late 1800s and early 1900s in either Canada or the USA but any information you have on this topic outside of that would still be nice.
At least in the first half of the nineteenth century, urban mortality rates were often higher because people were exposed to far more diseases and sanitation was horrendous. That being said, those who did not die developed better immune systems. It's not a coincidence that during the American Civil War disease was often more deadly in Confederate camps. While even the majority of Northern soldiers were from rural areas, there was nonetheless a much higher proportion of soldiers from urban backgrounds who had stronger immune systems.