It’s not easy to get a mortgage, but a lot depends on where you live, according to the Urban Institute.