There might be a couple of notes that match but by and large that melody is different enough that I don't think it's even in question.
Tom Petty didn't invent that chord progression. It's a very common one in popular music over many decades and genres.