Even though the other three play on it & Paul & John harmonise on it. You'd be much better referring to Yesterday as a McCartney song, because the other Beatles don't play on that song. But I don't do that. If the songs are labelled 'the Beatles' to me that's what they are.
Anyway it's a great choice for this topic.