Santa Fe Trade In or Buyout

I’m coming up to the end of a lease on a 2021 Santa Fe SEL AWD with 35K miles. I have 3 more leasing payments of $368.88 remaining and here are the numbers as of 2/25. Looking for some advice if it makes sense to turn in the vehicle at the end of the lease or to buy it.

Buyout Quote: $22,367.78

Lease Agreement Residual Value: $19,733.50