We always buy cars that are around 18 months old with remaining warranty.
Let someone else take the major depreciation knock (typically ex-fleet).