Running which with the -a flag will list all of the matching executables found in $PATH, not just the first.
which
-a
$PATH
Without the -a flag:
$ which bash /opt/homebrew/bin/bash
With the -a flag:
$ which -a bash /opt/homebrew/bin/bash /bin/bash