I would go for the iMac, but adding the optional ATI Radeon HD 4670. The Mac Mini cannot get that video card. You will get much better performances than with the 9400M.

I used to 5-box rather confortably on my 24' iMac. Great machine, really.