Decide whether to repair or replace