ShareX - screen capture and screen recording.
OBS - streaming (and lots of related functionality).
I'm guessing you were using OBS for screen recording - but that's not really close to it's core feature set.
OBS' ability to compose a whole scene, dozens of different capture methods, overlays, full audio mixer, transitions, etc. It's the perfect place to record any sort of desktop-based video. It's far far more than just "screen recording".
I use it for streaming as well, but having it installed, I also use it for recording when I need it. Also for video capture from the webcam.
OBS can do no wrong to me.
OBS is not a screen capture utility.
I've been looking for a way to record my screen and webcam as separate files and so far OBS¹ seems like it might be the only tool that can do that. Is that not a good use for OBS?
¹ https://obsproject.com/forum/resources/source-record.1285/)
In fact the issue was closed without understanding what the reporter was asking: https://github.com/obsproject/obs-studio/issues/8822
I log in into X11 when I use OBS on Ubuntu.
If you've got that set up up correctly, screen sharing will also work in Firefox (for instance on discord).
As far as I understand it, xdg-desktop-portal is a DE/WM agnostic protocol that enables applications to easily capture a screen - the user just has to run the right backend for their environment. I think it does other stuff too, but screen recording is probably the main use case.
I'm using Manjaro Sway Edition where that was configured out of the box.
ShareX doesn't live stream as far as I know? Let alone offer WebRTC?
Instead, I use another app called ShareX [1] which is much lighter on the OS and processor. It may not have all the features but you can easily create a screencast or recording session with ease.
[1]: https://github.com/ShareX/ShareX