Mars doesn't have an ozone layer, so it's not clear that it would be more inhabitable than Earth with a degraded ozone layer. Even if we had to live underground for a while and lots of things died, we'd still be breathing oxygen and using tools that already exist here.
1. https://en.wikipedia.org/wiki/Near-Earth_supernova