I think PF are better on a writing level, depending on how you judge them. Just being more complicated doesn't make something better. Of course this is personal preference, but Roger's lyrics always made sense to me. And nothing beats a Gilmour solo guitar-wise for me.
But even technicality aside, Rush wrote some really amazing riffs. I'm not the biggest fan of Alex's solos but I think considering the band he's in he is amazing because he will come out and solo when he needs to and drop back when he needs to and it was all in perfect balance back in that 2112-MP era. In general, I think there are many better and more creative guitarists out there, but the La Villa solo (Section IV, A Lerxst in Wonderland) is one of the best ever IMO, the pacing is just spot on. Contrary to many I preferred Neil's storytelling lyrics back in the 70s as opposed to the "more relatable" realistic stuff of the 80s and beyond. I don't deny that PF was a great band - though I never much cared for their music - I have to admire the brains behind it all.
