I would say Lennon. He wrote some pretty deep stuff and the not-so deep ones are really catchy and have great tunes. I feel like McCartney has written a lot of shallow music (but he has really great melodies) and Harrison, though very great, hasn't contributed too much to the Beatles (which stinks because he was a really good songwriter).
Favorite John songs: