This setup is one of the best travel tricks available, and most recent phones handle it well. Keep your home SIM (physical or eSIM) in slot one and set it to receive calls and SMS only, with data roaming switched off so you don't rack up charges. Put the local SIM or eSIM in the second slot and set it as your default for mobile data.
In your phone's SIM settings you can choose separately which line handles data, calls, and messages, so incoming calls and bank OTPs still land on your home number while everything else runs cheaply on local data. Just be aware that receiving calls on your home number abroad may still incur roaming charges depending on your home plan, so check what incoming calls and texts cost before you leave.
One tip: label the SIMs clearly in settings (Home and Travel) so you don't accidentally send data or expensive calls through the wrong line.