Exclude option in material override

I want to keep the material of some models, is there an Exclude option in material override?

You can duplicate the scene and gather the onjects you want to keep the materials in one collection then use compositing.