Don’t rush the onions—medium heat and patience make them sweet and golden (too-hot heat burns them). Swap Gruyère with Swiss if needed. Make-ahead: caramelize onions up to 4 days ahead and refrigerate; rewarm in a skillet before assembling. For extra tang, add a thin swipe of Dijon mustard inside the bread.