Apply canonicalization after the operations complete to deal with the potential for varying results due to duplicate detection order