Intel i5 4670K vs AMD FX - 8350

Which one is better? there is a $40 price difference in the AMD FX - 8350's favour.