The interface to the processor is different the interface between generations of intel processors are different.
Here’s a comparison between LGA 1700 12th generation Intel processor with LGA 1200 10th generation Intel processor
Heck, besides just not having all the pins in the same place, they even use a different type of socket — AMD puts all the pins on the processor and you line it up and shove them all down the holes on the motherboard (PGA-style socket) while Intel puts them all on the motherboard and the CPU has a bunch of flat contacts and you apply leveraged force to the CPU to hold it in place (LGA-style socket). And that’s why you can’t just replace one with the other. At least not without replacing the motherboard at the same time.