Is 解决 a common euphemism for going to the bathroom?
The real meaning of the word is solving an issue/problem/conflict. The first context is going to the bathroom, second one sounds more like a solving a conflict, the word 解决 is not that common to use for going to bathroom, the word '方便' probably more common.