The pressure will press the piston ring against cylinder wall under work and keep tight against leakage in cylinder. The machined surface is not perfect worked by tools, then the steam engine/internal combustion engines need running-in to make fit perfect between piston ring and cylinder. But the cylinder surface need a lot of “oil in pockets”, also the cylinder need cross hatchet cylinder honing on the surface. After running-in is done, there is still visible cross hatched tool marks by honing tool. It means lubricating the piston rings are good and will last long time so long the oil is available by “oil in pockets” in cylinder surface..
I has a TVR1A twin steam engine with O-ring as piston ring, it took me about 8 hour running-in to make perfect fit between O-ring and cylinder. It need a lot of oil under running-in. Now the steam engine is running fine with oil in steam by displacement lubricator. Without oil, the O-ring has enormous friction against cylinder. Piston ring is better than O-ring and need less oil, the real big steam engine need up to 2-3 drops oil per minute with mechanical lubricator under normal use (source: Book for mechanics by Peder Lobben, printed 1935). You need the displacement lubricator with valve to control the oil consumpion and keep steam engine well lubricated without spend too much oil.