TL;DR:
1998 Jeep Wrangler 4.0L automatic was stumbling. Tried spark plugs, wires, coil, distributor, CPS, O2 sensor, vacuum checks, throttle body, IAC, injectors, PCM—nothing worked.
Final fix: replaced distributor and used the original Cam Position Sensor from the old distributor. Jeep runs...