Ok, lets build an equivalent PC. These are prices in Germany (incl. VAT):
A 14' Macbook Pro (M1 Max with 32 GPU cores, 32 GB RAM, 512 GB storage) is 3440€.
A PC: 5950X (750€), 32GB RAM (150€), Mainboard (130€), WD SN850 500GB (90€). Now if you build from scratch you need a PSU, CPU cooler and a case (~200€ together).
That's 1320€ without a GPU. Depending on your workload the GPU performance seems to be between a desktop 3060 and 3080. So between 700€ and 1400€.
Tl;dr: A 3440€ Macbook competes with a 2000-2700€ desktop depending on your workload. The desktop has no peripherals and no USB4/TB4.