You are using the "which" command. You only get one result. How does Linux choose the result when the file exists in two directories in the $PATH variable?
Run this command to see every directory in the $PATH variable:
The "which" command evaluates from left to right and will return the first match found.