Making an area invisible does mask it from the effect of soft select - but you may not like the abrupt transition when it is made visible again:)
It doesn’t do it for me
how are you making the area invisible? I have just been selecting the faces and clicking the icon for hide selected faces
if it was me I would create a new material domain and hide it through that menu. You can remove the material domain once you’ve finished needing it.
Roygee is correct that you would need to be careful with the edges make sure the soft select is away from the edge and unlikely to impact on the transition between the two bits.
Also make sure you save frequently so if you stuff up you can go backwards.