Cheers to you, Cyrokk
Although I wouldn't use the phrase "poorly written album" to refer to any Beatles album, I have to agree with you that Sgt. Pepper was one of the worst. The only standout songs are A Day In The Life and possibly Good Morning (because of the time signatures), and if it wasn't for the "concept album" thing and the crazy orchestral stuff I'm sure it would regularly be ranked below Pet Sounds.
On a strictly songwriting basis, Pet Sounds far outshines Pepper, in both ingenuity and quality, but Pepper was a little more experimental and much more publicized, partly because it had the backing of the label, unlike Pet Sounds.
So the short answer is, yes I think Pet Sounds is better. I also agree that songwriting is far more important than recording quality. Any monkey with money can put out a good quality recording, a well written album is something special.