Chevrolet Blazer Question

I really like the Blazer and its V-6 engine after a test drive the other day. The problem I am trying to get an answer to is whether the Blazer is a good purchase considering that this is the last year for it being built. My big concern is depreciation during a 3-5 year period. I have checked the calculator and with a purchase price of $40,000, the value would be $23651. after 5 years.

Do discountinued cars depreciate more than cars that stay in production?

Thanks for the info and advice.

MJGirard