Fast short-circuit for diffs between identical strings