I’m a musician, composer, and occasional songwriter. I agree with this. I’d testify in court that this is not plagiarism or infringement in my opinion. Unfortunately people are suggestible. Tell them the melodies are the same, then play them, and people hear them as more similar than they are. It reminds me of that illusion where you play muttered speech with a caption and people “hear” the words in the caption.