Try to find the optimum merge base while resolving.