We're well into the realm of arguing ridiculous scenarios, but in that vein: the Earth will 100% become thermally uninhabitable before Mars as the Sun turns towards being a red giant. There will be a period of time when a terraformed Mars would be more temperate than the Earth.