name-rev: refactor logic to see if a new candidate is a better name