This is not pair programming. Pair programming means collaboration, not command and execution.
Pair programming is great when you don’t deal with time critical things exactly because it is easy to go down this path under time pressure.
Same goes for senior/junior pairings. It’s good to have someone more experienced with someone less experienced. There was a great YouTube video about this that includes a nice table on level pairings. Super seniors have little patience for total beginners and have also lost touch with the very basics that have become second nature. It’s best to pair within fairly near levels, just enough to enable decent communication.
It’s also best when the more experienced side can act as a guide, leading with questions and follow through with explanation.