Improved alignment merging by tuning cell equality