One more factor to consider is the sales tax (in states like NY, where it's pretty high).
If you buy, you pay sales tax on the entire purchase price. Even if you finance, you're paying that tax, financed over your term.
If you lease, you only pay sales tax on the monthly payments (laws differ by state though).
So that moves the breakeven point, as you're paying ~ 1/2 the tax on the lease (assuming lease works out to 1/2 of purchase price)
Certainly in the long run, if you're keeping the car for 5-6 years or more, you'll be ahead by buying. But if you plan to sell sooner, you might be better off with a lease.