Deductions & credits

I was reading some other threads related to this and came upon this one https://ttlc.intuit.com/questions/4221563 that suggests my situation might not be a trade-in/like-kind exchange. Technically there were two different transactions, since first I bought the new car from the private dealer and then when they sold my old car they paid me for it. Is that still considered a trade-in?