Self-excluding Transparency Material in Cycles
I found using Transparent Depth from the Light Path gets the job done. It works in reflections as well, but of course any other kind of transparency also occludes objects using this node setup as the ray depth will be more than 0.



Another possible solution depending on your exact case is to use multiple passes and to add transparency to the objects pass in compositing.