After a removal, y's two children can have the same height. Why must x then be the child on y's own side?
Because that choice gives a single rotation, which is guaranteed to rebalance; the other choice gives a double rotation, which can leave y with children of heights differing by 2.
Set up the tie generally. z's short side has height $h$; y has height $h + 2$, and both of y's children have height $h + 1$. Suppose y is z's right child.
x on y's side (y's right child), single left rotation: y moves up. z gets its old short side ($h$) plus y's inner child ($h + 1$): difference 1, height $h + 2$. y gets z ($h + 2$) and its outer child ($h + 1$): difference 1. Balanced, always.
x on the inner side (y's left child), double rotation: x moves up and its two subtrees are split between z and y. x has height $h + 1$, so its subtrees have heights $h$ and $h$, or $h$ and $h - 1$. If the subtree that goes to y has height $h - 1$, y ends up with children of heights $h - 1$ and $h + 1$, a difference of 2. The repair would itself break the rule.
In the remove(32) example, both choices happen to work (x = 50 has two children of equal height), which makes it tempting to think the choice is free. It is not in general, so stick to the rule.
Ties cannot happen after an insert: the new key deepens only one of y's subtrees, so one child is always strictly taller. That is why the tie rule appears only in removal.
Tip: "on a tie, stay straight." Prefer the straight line (single rotation) over the zig-zag.