Tolkien ripped all of his stuff from the bible and norse mythology. HP's fatal flaw is definitely the problematic undertones of every sort.
It's a fun thought experiment. It was started by reading Neil Gaiman's Books of Magic actually. It's like Harry Potter 5-10 years before it was written.