Add different compare strategies to the diff operation.