Not to raise a thread from the dead, but price is a pretty big factor, too. I snagged a 10700k from MicroCenter for $149 and can't imagine finding a much better deal.
Sure the 12700k is better, but it's also over $400 and requires a Z690 motherboard that starts at $200 and goes up from there. With only ~$300, I have a 10700k and an MSI Z490-A Pro motherboard. I started planning my build expecting to pay about $300 for a CPU alone (5600X), but I was flexible & patient and jumped on a great deal when it popped up.
Here's a comparison of the 10700k vs 11700k vs 5800X at Techspot
. Performance is closer than you might expect. I'm sure the 12700k is even better, but you're going to pay a lot for that performance right now. As someone who has fared surprisingly well on my i7 4930k over the past ~8 years, I suspect OP's 6000 series i5 will be similarly blown away when they upgrade to a 10700k, 11700k, or whatever recent CPU fits their budget best. If the 12700k is the best fit, then more power to you! But for me, a reasonable budget is a big factor.