The macs are -dramatically- slower for the same models vs my rig, but I absolutely grant they are cheaper. That said, as a digital sovereignty maximalist, giving Apple money is a hard pass for me personally.
If you want a cheaper unified memory approach with lower power consumption, I would instead point to Strix Halo or Gorgon Halo boards which are produced by multiple vendors.
Strix Halo are 2-4x slower for the same price (and uses more energy). Strix Halo tops at 273GB/s, M5 Max at 614GB/s. Plus Strix Halo are limited to 192GB ram, M5 can go up to 512GB ram