In OBS when using it to record game play you can separate track audio there are plenty of guide online but it does take some work. The simplest way is to use the built in game bar game recording in windows 10/11 its default setting is to only record game audio no matter what, and you can set it to record or not record mic audio.