I typically use which to figure out the first binary found in $PATH:
which -a emacsclient
/Users/user/homebrew/bin/emacsclient
/usr/bin/emacsclient
I always forget about type though:
type -a emacsclient
emacsclient is /Users/user/homebrew/bin/emacsclient
emacsclient is /usr/bin/emacsclient