I strongly recommend getting a house where you can walk out your door and walk somewhere without feeling unsafe because the road immediately outside your house is dangerous if you aren’t in a car and have the destination you are walking be a pleasant environment to be a pedestrian (i.e. not endless stroads).
The impact on your health, especially if you can win the lottery and get a job within walking distance, cannot be measured easily and most people vastly underestimate the savings and quality of life impact from not having to drive everywhere for everything.