Cover a canyon (walls for free). Use lava tubes. Or search for any peculiar geological feature that is amendable. I don't get why the assumption is a completely flat, desert surface.
That's why photos from different Mars landers look often very similar - the regions they have landed in have been effectively selected to be similar. :) And of course these pictures shape how Martian surface looks like the public consciousness.
Things may be changing though, with the technology being developed for active obstacle avoidance, that might enable martian landers to land in a more complex terrain safely by analyzing the actual landing site and landing on a safe spot.
Still, you might still want some flat area near an early martian base/city, even just to make trucking stuff from/to landers that strayed of course during landing easier. Eq. not having one in the middle of a rock field and another on crater bottom. :)
Cities on Earth are generally not being in canyons either, even though that would give you "walls for free" as well.
Cities on Earth don't need to be protected from toxic soil and hard UV radiation. Instead, most cities on earth have been built near rivers for cheap transportation. Castles and fortifications are built on hills for defensive value.
There are photos of lava tubes that are hundreds of meters wide and kilometres long. That's a lot of space shielded from radiation.
I know tunnel boring is supposed to be getting cheaper and easier, plus on Mars you’d be starting from a blank slate rather than working around/under existing infrastructure. But for big tunnels you still need a big boring machine, and that would either have to be shipped to Mars or built on Mars.
To make a tunnel boring machine on mars you must first invent replicating nano mining/manufacture bots.
I am uncertain of the ergonomics of living spaces in artifical environments - I suspect even the experts are uncertain and even if they invested heavily they would discover design mistakes to correct in future iterations.
But maybe pressurizing an underground complex with walls made out of ...Mars is more difficult than building something on the surface?
Going underground seemed like it had limitless room for easy expansion.
I like the authors suggestion and it does sound better than a dome but living underground seems safer to me.