Thoughts
At some point macOS added `/bin/realpath`? It looks like it's been in BSD forever so I don't know what changed that it's now in macOS.
("now" is probably as of Ventura, I'm not the most up to date.)