The situation didn't end well. It didn't have to, but I place that firmly on the managements' inexperience.
(Side lesson: I suspect that situations like what I encountered are why a lot of people "age out" of tech. Although many people state that "ageism is real," I think a lot of younger managers just have trouble letting go when they work with people more experienced than they are.)