Any trip to the outer Solar System that stops at Mars is, energetically, much more costly that one which does not stop at Mars.
In addition, getting stuff to Mars is itself a huge expense that completely swamps any imagined benefit of extracting fuel and launching it to stop by for.
If you want to go to Mars, go without promoting obvious falsehoods about any value it has as a transport hub. It has none. Period.
If, to make sense, your Mars story needs for Mars to be a useful transport hub, then it fails, and you need a different story.
> If you can't get there without a stop at Mars, then you really, really can't get there with a stop at Mars. Stopping at Mars costs extra.
This is as asinine as saying, if you can't get somewhere without a stop at the gas station, then you really, really can't get there with a stop at the gas station. Stopping at the gas station costs extra.
After all, it costs fuel to take an exit on the freeway and go to the gas station. It costs fuel to leave and go back on the freeway. It costs extra! Energetically, any trip where you have to make a detour to a gas station, costs more than a trip where you don't make a stop there.
> You start by shipping a million tons of freight to Mars
The equipment for generating the electricity to perform ISRU on Mars is supposedly within the payload capabilities of a single Starship, 100-150 tons, not a million, and this should be enough for a ton per day, enough to resupply in the 26 month launch window. The equipment for collecting water and CO2 is another matter, and I don't see estimates on that, but with the above and some engineering margin, it seems plausible that this operation can get off the ground in under ten ship-trips to Mars.