The 8350 has monstrous TDP: 140 w, it scales better than more expensive i5s in well multi threaded application and games and of course unlocked.
For less well threaded application and games the i5 has the lead and more efficient with lower TDP.
If an i5-3570k is available I would recommend it, otherwise Get the FX-8350.