ICE from Hamburg to Munich is about 5 hours. That's basically the other end of the country. Not sure where 9 hours come from.
And your 2 hour flight easily goes to 4-5 hours if you add the security theatre and the extra overhead that transport to/from the airport entails. They are far outside the city whereas central stations are usually in the city center.
And your 2 hour flight easily goes to 4-5 hours if you add the security theatre and the extra overhead that transport to/from the airport entails. They are far outside the city whereas central stations are usually in the city center.