The 12700K is hardly a lagging slouch just yet....; I'd seriously question the need for an upgrade unless already planning on some sort of outrageous framerate goals at 1080P /300+Hz monitor with an RTX4090 combo...
(Gaming benchmarks in video below start at 00:16 in video unless you care to examine 7-zip and encoding stats comparisons..)
View: https://www.youtube.com/watch?v=Es7lXejhxsg
Regarding you choice between 13th gen vs. 14th gen, I'd not pay too much extra for the 14th gen given it's mere 100-200 MHz boost in 1-2 cores, and typical 100 MHz boost in all core gaming, resulting in typical 1% fps gains in most gamesl However, if prices were equal, or very close, sure, opt for 14th gen..l but , 14th gen not worth even an extra $100 in my opinion.)