Remove redundant merge checks

This should make rebuildstaging quite a bit faster by eliminating the reverse-merges.

@dannyroberts @czue