All the output posted is as expected except below two:
Are they both in the same subnet ?
ip -4 a
ifconfig
Could be rebind protection or similar preventing lookups on private DNS IP's:
Also try set below on the Pi-hole web GUI and do the failed traceroute/nslookup again :
Ps. From below output, the Mac currently isnt configured to use Pi-hole but instead uses 10.247.71.2 for DNS resolution: