https://en.wikipedia.org/wiki/List_of_missions_to_the_Moon
It took many attempts to get a successful moon mission where we landed. How many more before we could dig into the rock for a habitat? Now multiply the time by the round trip to Mars. The fantasy of being on Mars in X years is fraught with dangers that include our own imperfection in execution. Don't expect a man on Mars in your lifetime, at least not one who comes back.
Because it's very near it's obviously much faster and cheaper to ship things there, and it allows near-instant communication back and forth.
Once the technologies are mature it will just be a question of longer shipping to mars or anywhere else.
So which is it? Do we need to build a base on the moon to develop technologies to let us settle Mars or do we not need to go to the moon at all because we already have the technology to build a Mars base?
To use your F-1 analogy: At one point you need to build and an actual car and to drive it on an actual track.
I won't even begin to take a Mars mission seriously until there are permanent, sealed, self-sufficient bases in the Sahara, Antarctica, etc.