Which Build is Better?

Solution
definitely the second, Ryzen throw FX under the bus. However, your build has flaws like ram too slow and single channel, psu unreliable, my edits:

PCPartPicker part list / Price breakdown by merchant

CPU: AMD - Ryzen 3 1200 3.1GHz Quad-Core Processor ($109.86 @ OutletPC)
Motherboard: Gigabyte - GA-AB350M-D3H Micro ATX AM4 Motherboard ($66.49 @ SuperBiiz)
Memory: G.Skill - Ripjaws V Series 8GB (2 x 4GB) DDR4-3733 Memory ($101.99 @ Newegg)
Storage: Western Digital - RE4 500GB 3.5" 7200RPM Internal Hard Drive ($33.00 @ Newegg Marketplace)
Video Card: Gigabyte - GeForce GTX 1050 Ti 4GB Video Card ($156.99 @ SuperBiiz)
Case: Deepcool...
definitely the second, Ryzen throw FX under the bus. However, your build has flaws like ram too slow and single channel, psu unreliable, my edits:

PCPartPicker part list / Price breakdown by merchant

CPU: AMD - Ryzen 3 1200 3.1GHz Quad-Core Processor ($109.86 @ OutletPC)
Motherboard: Gigabyte - GA-AB350M-D3H Micro ATX AM4 Motherboard ($66.49 @ SuperBiiz)
Memory: G.Skill - Ripjaws V Series 8GB (2 x 4GB) DDR4-3733 Memory ($101.99 @ Newegg)
Storage: Western Digital - RE4 500GB 3.5" 7200RPM Internal Hard Drive ($33.00 @ Newegg Marketplace)
Video Card: Gigabyte - GeForce GTX 1050 Ti 4GB Video Card ($156.99 @ SuperBiiz)
Case: Deepcool - TESSERACT SW ATX Mid Tower Case ($36.99 @ SuperBiiz)
Power Supply: SeaSonic - S12II 520W 80+ Bronze Certified ATX Power Supply ($42.99 @ SuperBiiz)
Wireless Network Adapter: TP-Link - TL-WN881ND PCI-Express x1 802.11b/g/n Wi-Fi Adapter ($19.89 @ OutletPC)
Total: $568.20
Prices include shipping, taxes, and discounts when available
Generated by PCPartPicker 2017-12-12 22:03 EST-0500
 
Solution

Rexper

Respectable
BANNED
Apr 12, 2017
2,131
2
2,510


PSU could still be better. I suggest the Corsair CX450M