Shoot, i forgot, that we are still talking about transparent objects, and that solution is mainly about completely opaque objects, that you don´t want to be reflected. But maybe with the correct blendmode, you can still use this solution and boost it´s transparency for raytraced, (linked to the Opacity node, instead of opacity mask), so that it gets threated as fully transparent. But not sure, what else is then affected.
But this RaytracingQualitySwtich is worth some experiments ![]()