Neither the Windows Game Bar nor MacOS's QuickTime offer any sort of meaningful control over the codec or destination. Once you have OBS installed, you have pretty much zero reason to use start-g or cmd-shift-5.
Plus, on a Mac you can't even record your audio using the built in recording solution, you need a third party audio driver for that.