If you can't ride a bike any distance, I'd say that was enough to make you a good candidate for surgery. Cycling isn't in the same class as squats where stress on the knees is concerned. I've had a dodgy knee for years: anything less than perfect technique in a squat and I'm in trouble, cycling is almost risk-free by comparison.