There was one interesting exception I know of. The city of Rehau decided to go with stadt-rehau.de, as rehau.de was already taken by the company with the same name (that is basically the biggest employer in this town and a know worldwide brand) that goes by rehau.de. You'll find their logo for example on subway powerlines and stuff in New York, London and the world over.
Still - I know quite a few people who got f**ed over by their hometowns - after having offered those same domains to them a few years earlier for free when those municipalities did not think "this internet" would be anything of imprtance or anything to care about.