In Nov 2018 got a MUCH higher trade-in offer from Tesla on my 3 than I got from CarMax. It was basically as much as I could sell it for privately.
On the other hand, Tesla offers for my old Roadster and S were laughable.
So, you never know, you just have to check.