In NYS, if you trade in the car to the dealership, you pay sales tax on the difference between the new car’s price and the market value of your trade in.
$30,000 new car - $14,000 s2k = $16,000 taxable
If it’s a wash, I believe you don’t pay sales tax.