Overriden equals to avoid slow performance on MergeSame