This is completely backwards. The Beatles put out songs that they didn't think were hits, and put out songs that they were conscious of being the antithesis of a hit. They wanted to freak people out from time to time. As many artists do.
Just check out Revolution 9. Pretty sure you can't get much out there than that when it comes to music of that era. And still very out there to this day.
Or for a more 'songy songs' that I'm pretty sure they didn't think at all in terms of hit material: Tomorrow Never Knows or Within You Without You. And there's dozens more.