In fact, aside from looking at your finances, location should be one of the things you have to decide first. Do your research and invest in a neighborhood where you can see a future.
How safe is the neighborhood?
How close is this to the schools? ( if you have school kids)
Drive time to your job
And so on…
Think about all the things that matter to you other than the house itself!