How is a BuyBack Vehicle's Value Calculated?

I saw a buyback 2022 Jeep Grand Cherokee priced about $2.8K below comparable nonbuyback vehicle prices. Carefax shows it was a lemon and a manufacturer buyback. It comes with a 12-month manufacturer warranty and all original warranties as well.

1. How much below comparable non-buyback vehicles should this vehicle be priced?

2. If I were to buy it and resell it in 5 years, how do dealers value a buyback when making an offer? (i.e. - how much less do dealers offer on a buyback compared to non - buyback trade in with the same specs).

I’m leaning towards not even considering a buyback, but the fact that it comes with a manufacturer warranty has me wondering.

Thanks