The eSIM will survive, unless you specifically factory reset with the option to delete eSIMs or delete them manually in the settings. Back when eSIM support wasn't a thing in GOS, the usual workaround was to install the eSIM on Pixel OS before flashing GOS. It will work just as well the other way around.
PS: Not a dumb question at all, took me some time to figure this out myself.