I don’t think it’s always better to be at your nearest school.
The school my DC started primary school at was 30 - 45 mins drive away depending on traffic. At the time DC1 started we felt it was the best available school. The journey was undeniably a PITA, but we’d have dealt with that as long as we continued to feel it was the better school.
As things turned out, the DC are now at a school 5 - 10 mins drive away (still not our closest school). The shorter journey time is a massive advantage, but that’s not why we moved them.
We moved them because circumstances meant that the first school was no longer an option for DC1, and even if it was an option, we’d completely lost faith in their ability to provide him with anything near a decent education. So we moved both school age DC to their current school.
Having said that, the adjustment to the new school was not trouble free, especially for DC1. Despite our concerns about the old school, DC1 has been happy there and didn’t welcome the change. DC2 (in Reception) had a few initial wobbles but adjusted very quickly.
Moving schools was really the only option for us, but if your DC are settled in their school, and you’re happy with the school, then personally I’d be reluctant to move them just because the school run isn’t great.