I have concerns that metashape code is not using L3 cache at all in terms of vectorizing data using modern processor instructions. The processed data are large and in uncompressed formats stored in RAM and cannot fits even in large L3 cache. Maybe if the data are processed at smaller pieces, this is question for devs.
7900x has 32MB cache for each 8-core chiplet so 2x32MB. X3D variant has the whole L3 cache shared between all cores of all chiplets. The X3D cache is consumming significant amount of energy, not ideal for all core CPU frequency if L3 cache is not used at all.
Instead of 5800x you should grab 7700x - better manufacturing process, much higher performance per watt. If you have larger budget, then 7950x is the best what you can have.
If your projects are using at least 16Mpix photos and you will be processing depth maps at highest quality(full photo resolution), then it makes a lot of sense buy 5800x/7700x and spend more money on faster GPU.