F30 340i Vs F80 M3

I've finally landed a job where I can comfortably afford an F80. Now I'm here though I'm wondering whether to just get an F31 340i instead. I can get one with barely any miles on for the same price as an F80, I do love tourings a lot more than saloons (I own an F31 320d ATM) but I just can't help shake the feeling that It's not the "M", the flagship model that's so much better than all the others.

I guess I'm wondering, is the F80 worth the significant running cost increase over the 340i? It'll be a daily driver and also doing track days and nurburgring trips all summer