iMac 27" 14,2 late 2013 CPU upgrade

It will not work with a Xeon processor.

The CPU you should get is anything from the Haswell line of CPUs. If I were doing the upgrade, I would install an Core i7 (4771).