Hi,
AMD 7xxx is better choice, because 13900k is mix of 8 performance cores and 16 efficient cores(without multithreading) and to match AMD performance it needs to be clocked almost to max boost frequencies, which produces a lot of heat.
Even better choice is AMD 7950X(non 3D), because that extra 64MB cache will highly probably not improve performance in metashape at all.
That cache is good only for certain specific games, which are heavily vectorizing data in CPU caches.
To get maximum potential performance you will need to undervolt the CPU in bios or in AMD software, because on default you can easily stuck on ~base multicore frequencies, high temperatures and high power consumption ...and that means lower performance in the end. This applies to all modern CPUs in the last ~10 years.
This seems accurate from what I know about the latest processors! But I recommend NOT undervolting unless you know what you're doing and know how to stress test. Undervolting is like overclocking, you can and probably will get calculation errors which can corrupt your data.
What you can do is use Eco Mode which I do with my 7900X. You can do it with the AMD software, or in the BIOS you can set power limits. I used the settings for the lower level 7900 non X processor to limit my wattage to 88W.