Two-time world champion Fernando Alonso says it will be easier to retire in 2026 if Aston Martin produce a competitive car.