7800x3d vs 9800x3d for 1440p

My monitor is LG UltraGear OLED 45GS95QE-B

its 1440p 240hz,im upgradingf from am4 to am5,which of those cpus should i get?price diff is like 130$ in my country

the 9800x3rd is overkill for 2k?im pairing it with 5080.