yeah some ecu require the vehicle to go through 2 drive cycles to set a code.. usually a short drive.
theres no point in replacing an o2 due to mileage unless youve got a running issue.
you shouldnt have to reset the ecu over a replaced sensor unless it was causing a CEL