Having seen the US attempt and lived with the UK railway, the German one is definitely a huge improvement. Yes, it does go wrong sometimes, but my experience at university in the UK was the end of term had two carriages with twice as many passengers as seats, that regularly terminated 20 minutes before the official destination, and my experience visiting the UK now that I live in Berlin is that the UK rail fares are (or often were pre-pandemic) more expensive than the flights to the UK. There's even a standard "money saving trick" on UK fare prices where you split a journey from A to B into A->C, C->B, where C is one of the stops in the route from A to B so you don't need to disembark.
That doesn't mean there's no room for improvement, neither the UK nor the US railways are role models. (I assume Japan is still a role model for rail? Not heard much since the 90s…)