Honestly I'd recommend OBS Studio. It's meant for streaming, but you can totally just use it as screen recording software. It's what I use any time I need to capture desktop recordings or in-game recordings. Pretty great, and free.
My laptop couldn't run OBS properly unfortunately, tried that one first.
I just press Win+G for Game Bar recording. I only use OBS if I need the whole screen.