Hitting H in the viewport only hides the object or objects from the viewport. They will still render.
There’s a wee button at the top of the Outliner called Filter. Make sure you open that and tick the options so that you can see all the options you might need. In my Outliner you can see I can toggle on and off the wee eye symbols, which controls viewport visibility and is the same as hitting H, as well as an icon that looks like a screen which disables the object in Viewport (same as H but Alt+H won’t unhide it) and a wee camera to disable in render.
So you could just turn it off for viewport and render using those icons or, as I said above, move backup stuff to its own collection and just turn the whole collection off)
