How similar are 'Stay With Me' and 'I Won't Back Down'?

Have you every noticed how Sam Smith's Stay With Me sounds an awful lot like Tom Petty's I Won't Back Down? Yeah, Petty has noticed, too, and now he's sharing royalties on Smith's Grammy-nominated song. (Petty won't be up for a Grammy, however.)
So how similar are their songs, really?
Well, very.
Ed Rex of medium.com shared the catchy choruses, transposed in the same key:
Um, is that the same song?
Rex writes that more than just the choruses are similar:
"Of the four phrases (in the songs), three are virtually identical. The pitches are the same; the rhythms are the same; the chords are pretty much the same, with Petty’s D subbed out for Smith’s C (a change that doesn’t really affect the harmony). Even the structure of the lyrics is similar — the songs’ titles both arrive on the same notes in the first full bar and are repeated in the last phrase.
To really hear what's going on, YouTube user
played the songs at the same time:
https://www.youtube.com/watch?v=qkcZV97O3pw
With slight rearrangements and adjustments to tempo and pitch, the tunes truly line up.
For another listen to the original songs, here you go: