The Pixel 3/3 XL (and several other Android smartphones) can run both a hotspot and Wi-Fi simultaneously. [1]
I could be wrong, but I am fairly sure these phones only have a single Wi-Fi module.
[1] https://www.androidpolice.com/2018/11/03/pixel-3-3-xl-suppor...