/usr/sbin is before /usr/bin, hence why it is called first.
If I copy lshw from /usr/bin into /usr/sbin
$ which lshw
/usr/sbin/lshw
so that would make sense (until I'm proven wrong). In that case, as said above, you aren't calling the binary from our proposed package (even if likely installed)
$ echo $PATH sbin:/usr/ local/bin: /usr/sbin: /usr/bin: /sbin:/ bin:/usr/ games:/ usr/local/ games:/ snap/bin
/usr/local/
/usr/sbin is before /usr/bin, hence why it is called first.
If I copy lshw from /usr/bin into /usr/sbin
$ which lshw
/usr/sbin/lshw
so that would make sense (until I'm proven wrong). In that case, as said above, you aren't calling the binary from our proposed package (even if likely installed)