I think you're asking the question because you already know the answer...! I'm not going to slam the treadmill as I think it can have its place (I've been using it in the London heatwave the last few days, and also set very extended hill intervals from time to time that I couldn't emulate outside without a lot of travel).
But, as others have said, it's best to run outside on the surface that you'll be running your event on, as much as you can. Your feet land repetitively in the same way on a treadmill whereas outside, you're constantly having to adjust to tiny variations in the surface - that needs training in itself, and then there's wind resistance, the elements, you name it.
Also, I don't know how you fare dealing with boredome when running a long distance on a treadmill, but the repetiveness does get to you after a while - no such problem outside as you can switch your focus at will from outside to what's going on inside and back again.
Maybe compromise if you really like the TM and keep one quality session a week or fortnight?
Best of luck with your HM!