a good melody seems important if you want to write a memorable song (this is in regards to non-lyrical songs, because you can make it more memorable with words) but is memorability important to writing a good song?
that might be a reverse correlation... i.e., rather than things being good because they're memorable, i'd rather say, we remember things BECAUSE we find them good