The chord played on the piano in the hallway by John and Paul, that banished Maestro, is the one at the end of the crescendo in
A Day in the Life. About 4m 20s in, if you can find it on Spotify or wherever. So real, actual Beatles music literally did banish the villain. You’d probably have to be proper fan to notice though.

. The real world explanation for the lack of Beatles music is that it’s too expensive to use, which RTD was well aware of when he started. The episode answers the question ‘how do you do the Beatles without doing the Beatles.’
Oh, and Maestro is played by a bloke. A dress and make up doesn’t make someone a woman, or a plurality, or a whatever …