I have both a PC9/PC Carbine and a Sub2000. I would take the Ruger in a heartbeat. The Sub2K folds, yes, but over time, that niche feature becomes less important, at least for me. Taking Glock mags in the grip is great, but again over time, not as big of a deal. My Sub2000 has more felt recoil (probably due to light weight), I can't put an optic on it unless I get an offset mount, and the built in sites are awful. Charging handle is super stiff and not a fan of the location.
Ruger is heavier but just made better in my opinion. It's a bit involved to completely take apart, and a number of parts should be replaced asap with Mcarbo kits (ie. shock buffer and clip, extractor, bolt retaining screws, etc.). Accuracy wise, out of the box I would take the Ruger. Operation, wise, I enjoy shooting the Ruger more. It won't win any beauty contests, but the gun is as reliable as they come.