e.g. If your phone is pure stock you unlock its bootloader it will remove some apps which are installed in preload. Now if you relock the bootloader and flash stock recovery the ota update will not be applied as during flashing ota update check for these apps whether they are installed in preload or not. For ota updates to applied succesfully you need to run RUU of your model then flash ota.
Sent from my HTC One using XDA Premium 4 mobile app