Things to note:
Pay:
Midwifery starts at £31,049, not £29,970, but crucially, there is unsocial hours in top of this, a 30% uplift for weeknights and Saturdays, and a 60% uplift for Sundays and bank holidays.
Midwifery also progresses to Band 6 immediately upon completion of the preceptorship (average is 12 months, but can be anywhere between 6 and 21-ish) depending on the person) which increases their base salary to £38,682. Top of band 6 is £46,580 which would still not have any management requirements, and plenty of band 7 roles (£47,810 -£54,710) won't have people management as a key component (other than perhaps being midwife in charge for some shifts, but would still very much be clinically based)
Teaching starts at £32916 and top of upper pay scale (which I believe doesn't have to include management) is £51,048. Although my basic understanding is that you need to do each pay step in turn up through the main scale (so 6 years to get to M6 which is £45k) and then apply to cross onto ups, but a teacher may know more than me on that!
Holidays:
keep in mind that full time midwives are only working 3 shifts a week (with one 4 shift week every 4 weeks) so need far less annual leave for routine stuff like appointments, sports days etc due to the flexibility - most areas allow you 4 requests a month of shifts you particularly want off to help accomodate these things without having to touch annual leave, so annual leave lasts quite a while in my experience, and obviously it's subjective and dependent on areas but I work closely with midwives in my nursing specialty and I've never had any issues getting annual leave when I want it and to my knowledge it's not an endemic for them either (and even last minute requests will be accommodated where possible, and the teams I work with will all try and cover each other for these where needed)
Pension:
Both schemes are DB so looking at employer contributions isn't a useful indicator, you'd be better looking at accrual and employee contributions
The accrual rate is better in the NHS pension, but the employee contributions climb quicker (both schemes contributions increase with salary, if you took a midwife at the top of band 6 they would be paying 9.8% into their pension and a teacher at the top of the main pay scale would pay 8.9%, but in turn the midwives pension will be higher as a result of the better accrual rate.
Shifts:
See holidays, midwives work long shifts but fewer of them. In my experience most wards/units are also fiercely protective of making sure they each get a break, and nobody stops them going for a wee when they want to!
I know you said these aren't her deciding factors, but I don't think midwives are getting a raw deal compared to teachers, no. They are getting a raw deal compared to what they deserve, absolutely, but so are teachers. I wouldn't say midwives are being disproportionately screwed over any more than any another public sector role to be honest, least of all teachers. If anything I would probably say it was the other way round (as someone who seriously considered teaching for their career change but pumped for healthcare instead!)
But if her heart can think of nothing better than being a teacher, she will be hard to sway, likewise if midwifery is what makes her light up, teaching won't make her happy even if she managed to rationalise it being the 'better option'.
And if neither of them seem like something she couldn't dream of not doing I would honestly urge her to look at other careers as both will be exceedingly miserable if you're not loving it at the outset,
even if the passion wanes!