I agree with @Jason Lee. I think defining your goals will help lead you in the right direction. For example, are looking for some cash flow or just depreciation? How hands on do you want to be a landlord? Are you simply looking for a place to live? Buying a place to live in may not be the best option.
If you're willing to live with a roommate in NYC house hacking within a condo could be a good option. My first purchase was a condo in Brooklyn where I rented out the 2nd bedroom to help cover the mortgage. I wasn't making positive cashflow, but I was reducing my expenses.
My suggestion, without knowing any of the details, would be to rent in NYC and buy property elsewhere (in a cashflow market). I doubt there's going to be significant appreciation in NYC in the short team (2-3 years) given where we are in the market. And cash flow is likely to be negative. I certainly understand the desire to own the place you live in, but if you look at the numbers it's hard to justify.