bent rams bind while in operation. The spec on bend is something like .015", so basically "not much" is allowed. That's one of many things I always checked (bend) when I was doing a bunch of cylinders. As long as they came apart easily, it was an inexpensive repair, typically labor under $100 + whatever parts cost. On average $175 roughly.
With that said if I had a bent ram, I replaced it or gave it back to the customer whichever he wanted. The ram shafts are plated and case hardened. When they bend, the "shell" becomes damaged and a lot of times would flake off with no warning whatsoever, even when they looked fine. When that happens the rod is junk, and it usually takes out both the dust seal and the main gland oil seal then you're back to square one. Real common on backhoes and loader tilt cylinders.