Brew is only slightly a mess, in my experience.
I've installed brew both in the historical /usr/local location as well as the future home of /opt/homebrew. I then created these two aliases:
alias armbrew="/opt/homebrew/bin/brew"
alias intbrew="arch -x86_64 /usr/local/bin/brew"
My PATH selects for programs installed in the /opt/homebrew location first and then /usr/local. I try to install with the ARM version first with `armbrew install -s <PKG>` and if it fails, I move to using the `intbrew` alias as normal. I haven't really had any issues.It's obviously still messy but not in a way that is too bad!