how about you clear the code before taking it to the dealer for trade?
you might get lucky and the sensor might not trigger the DTC until after you hand off the keys. lol hey, people buy used cars to buy other people's problems. that's a given. let them deal with the problems. lol (dealer might swap it anyways).
or buy new.