I want to render in Unreal Engine, excluding only specific objects.

hello
I want to render in Unreal Engine, excluding only specific objects.
Just like rendering a layer with its visibility off in Photoshop or Premiere Pro.
However, in Unreal Engine, even if visibility is turned off, the object is still visible when rendering. The same applies if you turn off visibility using the layer function. What method should I use?
Disabling spawns in a sequence is not appropriate for my project.
It’s a very complicated process because we want a specific object to be disabled in only one sequence out of many.