The song "Bosom Buddies" is well into the second act of "Mame" so there's no way Julia would not have known of her co-star's incapacity much earlier.
The role of Gooch is an extremely vocally demanding one. Going off of Mary Jo's singing in previous episodes, her getting cast as Gooch is neither realistic nor likely.