It depends on the actual rifle, not the "operating system". To say, in broad strokes, that a piston system is automatically more reliable than a direct system is somewhat naive. Take an AK, make the receiver smaller, getting rid of all the clearances for dirt and crap. Will it be as reliable? Of course not, it will be more sensitive to sand/dirt/ etc in the receiver, which is the cause of 99% of malfunctions in the field (assuming that the magazines work).
Do you think anyone will tell you that the piston-operated SA80 is more reliable than an M16?
The M60 is piston operated, and look how much it was loved by the users.
The G36 is piston operated, and it had/has some serious issues (that had nothing to do with the operating system per se, but you use a RIFLE, not just a piston, or a bolt, or whatever).
Why is a piston system "superior" to a direct system? Because it's cleaner? Yes, it's cleaner. Does it make a REAL WORLD difference? Hardly. It has been proven time and time again that you can shoot thousands and thousands of rounds through an M16 with no cleaning before you start having issues, and that just doesn't happen, ever, in any military situation.
Most of the issues (if not all) with the M16 have to do with old, worn out magazines, and sand getting into the receiver. The gas system has nothing to do with it. A lot of people "know" that a G36 is more reliable than an M16, because it has a piston. How does the receiver handle sand/mud getting into it, like the AK does? Does it have ultra wide clearances and channels? No. But the magic piston system will make it sand/mud resistant.
The most reliable system is still the AK, but the piston is not the reason for it.