You can have the most brilliant, poetic lyrics ever - but if they are put to a boring melody, nobody is going to care.
Likewise you may have penned down a perfect melody, with the right harmonies in exactly the right places. If the lyrics are terrible though, it will prevent people fully appreciating the music.
They are both equally important... Oh I do love sitting on the fence