Are there any general considerations to make when choosing between the stairway defense setup with f7, g6, h5 vs f7, g6, h6, Kh7?
Yes.
The key point is that every pawn move weakens some squares and strengthens others. Of particular relevance here is what bishops are on the board and where are they?
The move h5 weakens the dark squares. Conversely the move Kh7 leaves you vulnerable to a light squared bishop pinning the g6 pawn. Here white has a dark squared bishop but no light squared bishop so Kh7 looks better than h5.
Other considerations are the number of pieces the opponent is attacking with and the number of defenders plus possible hooks for pawn attacks.
Here white is attacking with just the queen and bishop while black is defending with bishop, knight, queen and king. So there is no requirement for h5. White is behind in development and it will take several moves before more pieces can be brought into the attack. Meanwhile if black starts with Kh7 that opens up the possibility of a later Ng8 if further reinforcements for the h6 pawn are required.
Furthermore with the queen in front of the white pawns launching a pawn storm is awkward for white. If black moves a pawn to the 5th rank it would make such a pawn storm easier for white by providing a hook.
In general keeping the pawns on h6 and g6 gives more flexibility in the face of a pawn storm. Black can respond to a g5 push with h5 and a h5 push with g5.