Separate those two transactions. In 90% cases You will leave money on the table.
Get maximum equity from the accord by shopping around. My friend just finalized selling his leased CRV to Rodo. They offered the highest equity. Noone could touch this number.
If You are glued to CRV shop around and everyone will say better to purchase it.
If You are open for different makes look at the marketplace here. The brokers offer good deals for today’s market.