Back when I got my 5950X, I was doing this same debate with the 5900x. Finally I just said heck with it, might as well go out with a bang on AM4. Went with the 5950X after they both went on sale. Always will have plenty of CPU power, I rarely fully use it to its full potential, but knowing I have the horsepower of 16 cores 32 threads, I know I can do a bunch of things and never have a slowdown. I am sticking with AM4 for a while yet, sure the newer stuff is faster, maybe once a cpu comes out that has 60% to 70% uplift over the 5950X or it gets obsolete for some reason I will finally move on from it. Get the 5950x, you won't regret it.
Asus ROG Crosshair VIII Dark Hero-Ryzen 5950X-Noctua NH D15 Chromax Black-4x8GB 32Gb GSkill DDR4@3600-Asus TUF RTX 4070 Ti Super OC-Solidigm P44 Pro 1TB-Solidigm P44 Pro 2TB-Super Flower 1000W Leadex SE Platinum