Mercedes benz C250 used advice needed

Hello I am new to this forum. I am seeing a deal at CarMax where C250 2014 premium package at 18K at $24K.

I drive at least 12K a year.

Would I be better off leasing brand new C250, considering that warranty will be out soon and I am nor sure what to make of certified preowned program by CarMax? Any advice will be appreciated.