Nobody has mentioned this yet but there is often a fairly drastic difference in the warmup times of OEM sensors vs aftermarket. I've personally run into a situation (also on a Dodge Dakota..) where new aftermarket o2 sensors showed to work just fine in obd2 datastream, and yet after 10 minutes of driving the computer would cut injector pulsewidth and lean the motor out to the point it was barely drivable although there seemed to be no explicable reason why the computer was doing that in the moment. Got a hot tip that if the o2s werent fully warmed up from cold in 15 seconds i'd better swap in some OEMs. They weren't, not by a longshot, and after replacing the o2s with OEM (which did hit the 15s mark) the symptom never recurred.
One of the stupid things about working on cars is that there are a LOT of inexplicable unintended consequences in the engine control part of things. I've also had a Ford f150 spontaneously lean out after ~10 minutes of driving with no clue as to why in obd datastream. Know what fixed that? An ignition coil pack.