You are correct that the height of the pan doesn’t determine the height of the buns, however, when the sides are too tall for the dough, my experience is that the dough steams as much as it bakes which changes the texture of the resulting baked bread. I might just have to do some experiments! This whole discussion has made me extremely curious.