Zen 5 is not that bad, its just that 9700X especially is very powerlimited, going to 105W TDP, increases performance by 12-15% - should never have been a 65W part (7700X is 105W and 9700X performs 2% better at 65W limit)
There's much higher headroom on Zen 5 than Zen 4, just look at temperatures, AMD went for efficiency, but you can change that - OC is a thing with Zen 5
I expect 9800X3D to beat 7800X3D by ~15% due to higher clockspeeds, and it might be even more, as 9800X3D is unlocked for OC where 7800X3D is locked down and barely can be tweaked for 2% more performance, 3D cache is less fragile next time = higher clockspeeds
I will go 9800X3D or 285K next, maybe 265K if gaming perf is close to 285K