Go for the M40i, sounds great and has plenty of power and torque.
The 30i engine is also very good and, as you say, is lighter which makes the car handle a little bit better.
All down to what you are happier with, taking into account the extra cost of the M40i.