Unfortunately, $36k is around MMR and your dealer gave you a very good offer on the MYP. All the Teslas are instantly underwater except for the Cybertruck.
Adj MMR for 2023 Lariat is at $52k(what dealers pay each other in auctions). Wholesale market doesn’t value ER or SR differently. The valuation your dealer seems to be in line after accounting for their profit.