Both have pro and cons in my opinion. i3 4170 only has 2 cores, FX 6100 has 6. So FX 6100 would be better for gaming overall, and would be able to handle more intense applications.
Personally I would never go AMD based again as my last two systems have been AMD based and have died premature, but based on these CPUs above, AMD wins.