The best answer for some people is to skip it. Others will prefer a different approach, such as leaning into exploration, which makes up a significant portion of my own groups' games.
There are lots of ways to make the game more survival oriented, which I'm fairly certain plenty of folks have already discussed. If you don't like the baseline, then you can modify things to make them more front and center. For example, you might say that long resting during a journey requires a week of uninterrupted rest. This make exhaustion far more serious, since you can't simply lose a stack overnight. Other ways include removing spells that negate those features that you want to focus on (like how my friend, who I mentioned earlier in the thread, made spells that create food or water not work in his desert campaign). Of course, survival doesn't need to be a focus for your campaign if you don't want it to be, and that's fine.
You can focus more or less on exploration, as you like. You can make it central to the campaign if you remove spells that circumvent it. You can make it an afterthought if you skip most exploration and just cut from one combat/social scene to the next. You can leave it at the baseline, which allows players to opt in based on what resources they want to allocate toward it.
This isn't really much different from running a combat or social focused game. You ideally want to adjust things there too, else it will likely result in a less than ideal experience (ie, a barbarian or fighter in a campaign where combat is rare or nonexistent, or a social bard in a hack-and-slash game).
D&D has a baseline, which allows you to opt out of a lot of exploration obstacles through your choices. You can easily modify the baseline to get your desired play. It would have been pretty laughable if, instead of simply saying that spells that make food or water don't work, my friend who ran the desert campaign had thrown up his hands and declared that such a campaign is impossible in D&D. Instead, he made the tweaks he needed for the desired result and ran a very memorable campaign.