This fixes the error compiling _com_ptr_t described in https://bugs.llvm.org/show_bug.cgi?id=42842
In MSVCCompat mode, clang already attempts to downgrade these mismatches to a warning, but because C++17 considers the specifiers part of the type, the check in MergeFunctionDecl needs to ignore these specifiers for purpose of comparison.
I wonder if we should simplify this to just call hasSameFunctionTypeIgnoringExceptionSpec in all modes. Essentially, just trust that CheckExceptionSpecification did the right thing, in case it returns false for other reasons in the future. It might actually be better for error recovery, for example, to continue adding this overload when exception specifications don't match. I'll try that and see if it passes tests.