If you need to record a specific portion of the screen, I'd recommend the open source tool Captura: https://mathewsachin.github.io/Captura/
It's no longer maintained as of July 2020, but it's quite effective at what it does and is not lacking for features. I use it for recording UI interactions all the time.
I noticed it when I tried to record a demo of a git merge flow in an IDE. Fail!
I wish this was properly built-in on Windows, since the recording is otherwise excellent.
I can't believe I've been using Windows 10 for so long and didn't even know about this - I kind of wish they'd change the name TBH; would also make it seem more reasonable to be installed be default on Enterprise eds!