For a Moon base locations, look up peaks of eternal sunlight. We also have space-grade nuclear reactors and RTGs ready to go.
On the Moon you can have realtime communication, bring way more equipment, have robots remotely controlled from Earth, and get help or evacuate quickly. NASA and China will be able to land people on the Moon, other nations can get rovers/supplies there.
Anything goes wrong on Mars - you are dead. I would pick Moon any day.
No one can survive in any of these places without a space suit, but on Mars you have easier access to the various natural resources you'd need in order to survive and build additional infrastructure. Light for solar power is consistently available on a normal day/night cycle, as is CO2 and water, which can be used to make methane fuel and liquid oxygen. It has concentrations of sulfur, which can be used to make a form of concrete. The gravity is more conducive to long term human health. All this is relevant.
Surviving on the moon or in LEO is also quite possible, it's just that you'd need to bring more equipment and all the resources you can't find on-site.
Since it takes 6 months to get to mars and only 3 days to the moon and the only advantage for surviving on mars is the mini gravity, I really think we should start with the moon.
Mars also has an atmosphere which contains CO2, which is useful for making methane. It also has a lot of water. (The moon has water too, though it may be less abundant/accessible.)
That is, are there locations on the Moon's surface where the sun is perpetually visible?
But in terms of setting up a base soon and building rockets for example ... the very short travel distance to the moon offsets any advantage the mars has
Mars and the moon both have pros and cons. Mars would be an easier place to survive, but the moon is easier to get to.