If you look at the power curves on both cars, you will see that the 335 is almost always making an additional ~35whp more than the G37 for 90% of the useable rpm range. If the G37 could keep shiftpoints in the last 6500-7500rpm it might have a chance but then again it is always hauling 200lbs more than the 335.
Edmunds review