Here are the list of supported CPU that have been validated by Intel on the board DG31PR.
As you can see, both CPUs are on the list.
The only advice to you are:
- Make sure to get CPU with the SL number that are on the list.
- Before replacing the CPU, update the bios to the latest version.
Enjoy your new CPU.
All the best,