Since this will be your primary residence, your interest rate can be very low (assuming you do not own another property). You may be surprised how low your mortgage might be, even if you increased your range a bit. You may want to speak with a mortgage professional to see if a higher price range makes more sense in that you can purchase something that will pay for itself in rental income. There are many two and three families that will allow you to do so and reside there.
Otherwise, purchasing a property does not make too much sense - the lower range in New Haven is still trending downward and once you add taxes and Realtor and Lawyer fees, you will likely do better renting.
Considering that days on market in a normal real estate environment averages 180, two years is a relatively short time to buy something then move again. You might be able to get a seller to pay closing costs, but when you sell you need to factor in the expenses of the sale- conveyance tax, real estate commission, attorney's fees. If you are looking at a small mortgage, likewise the tax benefits for payment of interest on the loan will be smaller as well. Talk to your accountant or visit http://www.irs.gov/
for information and review your financial situation to see i what would be the tax consequences/benefits.
You don't say if you have any pets. As a renter you may pay a premium for renting with pets.
If you can find a distress situation where a seller has to sell (say a short sale , foreclosure or estate) and you have the financial wherewithal and patience to wait for an answer, you may break even or possibly come out ahead in two years.
Each person's situation is unique, so what may "make sense" for one, may not for another.
If you are not currently represented by a Realtor, feel free to contact me-
All the best,
It's hard to manage a rental from a distance and is not recommended.