Let's start with a program that knows how to get out of the way: unclutter.
I don't ever see this program run, and I usually forget it exists. I have it placed in my ~/.xsession as `unclutter -idle 1 -root`, which hides my mouse cursor after one second of inactivity. This is great for me, since on a typical day, the only time I use the mouse is when I use a web browser; otherwise, it gets in the way of whatever I'm reading or typing.
Mike Gerwitz's personal Mastodon instance