Rent isn’t the only variable that determines how affordable a particular home is. Access to transit and amenities like groceries matters, too.