I commuted by train for 2 years, 3 days a week, one hour each way before Covid sent me to full remote home office for the time being.
Yes, commuting by train is more relaxing than commuting by car. But don’t underestimate the stress factor anyway. Trains get delayed or canceled entirely and that can have various impacts on your work and personal life (especially if you only commute for "important" appointments and otherwise work from home). In the long run, that still takes a toll on your mood.
For example, I had a 10-minute walk, 40 minutes on the ICE, and 5-10 minutes by bike from the station to home. During the 40 minutes on the ICE, you could even work through emails, create presentations, etc., which was quite nice.
Still, I would never go back. Your children are a bit older than ours (0+3), but there is so much unexpected stuff that is simply hard to organize with that kind of commuting.
We also had the discussion of country vs city. We even had a plot of land in the countryside (only 5 km outside, but poorly connected) and still decided against it. We are simply city people. Sure, sometimes when I ride my bike through the villages, I find it really beautiful and quiet there, and it would be relatively affordable. But in everyday life, it’s rather the 5-minute bike ride to the secondary school (for us, getting up at 6 a.m. or so would be the worst punishment and the bus in the countryside was really impractical in the morning…), the 5 minutes on foot to the sports center, my wife’s short commute (less than 10 minutes by bike), and so on that decide.