You're joking, right?
Taylor was able to make an album solelly written by her get a 77 MetaScore on Metacritic.
She was able to make a radio friendly album full of hits reach again a 77 MetaScore.
She writes everything. The lyrics and the melodies.
Katy clearly doesn't write melodies. I believe it was said in a interview that she tweaks the melodies from the material that is handled for her by her producers. And then she writes some of her lyrics. Still, she relies on the help of other songwriters - like Bonnie McKee. Yet, she was never able to make a good record. She never had one song praised or gotten significant acclaim like Taylor has. Her highest ranking album on MetaCritic has a Metascore of 61.
I think it's pretty clear who is the better songwriter.
Taylor has been a songwriter since she was 10 years old. I think at this point, in the pop scene, the only songwriters as talented as her are Adele and Lorde. These two lack one talent that Taylor has, though: the skill of writing melodies.