Rectangle vs Yabai
For most people, Rectangle: it's our default window manager. Snap windows to halves and corners with shortcuts, free and open source. Yabai is the one to choose if its angle suits you better: The original tiling window manager for macOS, scriptable from the shell.
RectangleHomebrew · Our pick
Snap windows to halves and corners with shortcuts, free and open source.
$ brew install --cask rectangleYabaiHomebrew
The original tiling window manager for macOS, scriptable from the shell.
$ brew install koekeishiya/formulae/yabaiCan't decide? Try both
Both are on Homebrew, so you can install them side by side and keep the one you like:
$ brew install --cask rectangle && brew install koekeishiya/formulae/yabaiOther window managers to consider

AeroSpace
HomebrewAn i3-style tiling window manager that needs no SIP changes, the current favourite for keyboard people.
brew install --cask nikitabobko/tap/aerospace