I used to do this in chrome. You can click on your profile picture in the upper-right corner of the gmail UI to switch accounts. You end up having a different URL per user, like https://mail.google.com/mail/u/<number>, where <number> is 0 or 1 if you have two users. You can put these in bookmarks and have them open in different tabs.