Keep in mind that only Tesla includes an extended warranty at no additional charge. Others may not sell any extended warranty (I know Carvana doesn't).
Xcelarate sells an extended warranty for around $4,000 so take that into account when making a used vehicle purchase.
Makes prices on Tesla's used inventory listing look good, that's where I got my 2016 MS.