That is such a bummer. That sounds really frustrating, and unfortunately that’s not the first time I’ve heard a story like that.
You identified another key reason why these external hire choices can be so difficult for internal candidates: the internal person often needs to train their new boss. Talk about rubbing salt in the wound! It doesn’t get much more difficult than that!