I have the M3 Max, and a custom built pc using some Ryzen chip that has roughly equivalent benchmark scores to the M3 Max.
The amount of cooling and power required for such a PC versus the aluminum slab with small fans that almost never turn on is a testament to the insanely good engineering of the M series chips.
I compile large c++ codebases on a daily basis, but the M3 Max never makes me feel like I can “grab a cup of coffee”.