This poses no problem. For example, you can disable the eSIM, but the physical SIM continues to run and only one SIM is displayed.
The opposite doesn't seem to be possible, at least I can't find the option. I can't disable the physical SIM and leave the eSIM active, unless I reboot the iPhone and omit to enter the PIN, so it will stay locked. There must be a better way...