I'm gonna assume your other slot is at least bootable
Boot into recovery
Factory reset
Flash ROM
Flash twrp
Reboot recovery
Flash vendor
Flash super user (if you flash magisk you need to flash twrp after it before you reboot)
Boot ROM
There are no gapps for pure nexus but if you needed to flash them do it after you flash the ROM and have rebooted once.
If want to use your current slot because you know its good. Boot into recovery. Go into reboot and select the opposite slot. Then choose to reboot into recovery and perform the steps I listed above.
One Question: When you do a factory reset with Pixel XL (twrp). Is TWRP still on the phone for flashing ROM
I've never done a Pixel XL (twrp) factory reset.