Would this work

In gaming these 2 CPUs will be about the same. Depending on the title and how many cores it can use, there's a +/- 4% average difference.

But the GPU you paired with the FX 8350 is the GTX 760, and with the i5 it is the 660. In this case the 760 will be faster.

For video, some apps will render faster on the i5. But during h264/x264 encoding the FX 8350 will be a little faster. So it is also pretty even here, depending on what apps you plan to use.

Overall, the complete system you can assemble with the AMD will be slightly better than the i5 thanks to the better GPU you can afford.