A little orthogonal, but Adam Neely does a great job of analyzing the Katy Perry Dark Horse case on his channel https://www.youtube.com/watch?v=0ytoUuO-qvg.
Thank you. This is the YouTube video I remember about the subject.
And I stand corrected that it wasn't specifically the melody that the lawsuit accused of being copied. I still don't know what an "ostinado" is.