My first impression is that I would side with Taylor Swift as I think two (or more) authors could come up with those very similar words independently, i.e., without copying. And if one did not copy the other, it is not copyright infringement.
These two short lyric excerpts from larger songs are of a style of lyric writing I have seen before, one in which a clever literary device is at play. Songs with these literary devices are fairly common in Nashville, country and pop. It reminds me of songs and song titles like these: