I think most of us would agree that Mac OSX is derived from UNIX with a fancy front end on it. Before I retired and sold up, my companies ran Unix based systems on Bull hardware for our servers and central accounting. It was part of the recommended weekly routine for our IT guys to run a defrag and compact on the Bull servers.
Perhaps the person who recommended this was misinformed? I've been around Unix and later Linux systems at several companies for 30 years now and not one of them has ever done defragmentation on any systems. Some operating systems are just better able to deal with fragmentation than others -- the gain might be so small that the time spent on defragmentation is greater than the time lost to fragmentation!