I’m trying to mask a specific UI object outside another, while leaving everything else alone.
I.e.:

(btw, both objects inside the mask are children of the mask object)
There will be multiple of the mask object, but only one red object.
Mask components and shaders (I think) won’t work since I need the mask to affect a single specific object, and the red object doesn’t have a sprite, (it’s literally just a colored rectangle). So I’m trying to use the experimental (at least in 2020.3.10f1) Render Objects in the URP asset_renderer.
I tried following this Unity manual/docs page as a start, and it works perfectly for any 3D object, but not for UI (Unity UI/UGUI, whatever it’s called). And yes, I did use the Transparent Layer Mask in the filtering, and set my Render Feature’s queue to Transparent, as opposed to following the page’s screenshots verbatim.
Something I found out while randomly changing the options, is that if I try preventing my custom “Background” layer from rendering (which I have the desired object as), nothing happens, but if I instead (or also) unselect the default “UI” layer from the Transparent Layer Mask, the UI instantly disappears.
Been trying to make this work for the past 2-3 days, still as clueless as when I started.