The Ryzen will be the stronger performer and is much more current. Especially if you add a dedicated GPU in the future.
The old socket 1155 based Xeon is a good rig, but getting rather long in the tooth (old).
Welcome to the forums, newcomer!
You're comparing a near decade old processor with one that's recently released. I'd pick the APU since it's more power efficient...though we have no clue what sort of tasks your system will be taxed with. If for merely gaming, mention the titles without an etc.
Side note, a system is built around more than 1 or 2 components, please parse the specs to your proposed build like so:
CPU:
Motherboard:
Ram:
SSD/HDD:
GPU:
PSU:
Chassis: