The check has produced false positives when checking the default implementation of the spaceship operator.
The default implementation should be skipped by the check.
Modified the existing test so that the check runs into the bug without this fix and add another test case.
Fixes #53961
NIT: maybe add a comment mentioning that this tries to find defaulted comparison operators.
Pre-C++20 one could only put = default constructors, destructors and assignment operators. So I suspect this might be a useful clarification for readers of the code.