ExcludedForms
ExcludedForms is an option that gives a list of patterns for expressions that should be excluded from an operation performed by a particular function.
Please visit the official Wolfram Language Reference for more details and examples on core symbols.