Amd phenom ii x4 945 vs intel i5

Price factor aside, the i5 (assuming you are talking about the quad cores doesn't matter first Gen or second Gen) beats the X4 fair and square. In fact if you just look at the processor prices the i5 gives better price to performance ratio.