I’m with you on this one! Sometimes the best solution is to reference exactly what was being rendered.
I too find it underwhelming that this is not a directly exposed function of custom stencil buffers.
If you don’t mind and are willing, could you share if (and what) you found as a solution to this?