Mythology, whether Egyptian, Mesopotamian, Hellenic, Germanic, Meso American, Semitic, CHRISTIAN, Hindu etc are all deeply relevant both in the context of historical, philosophical and sociological studies.
Religion is worth studying. But the same way you study philosophy, history or literature.
The problem with studying religion isn't inherently in the study of religion itself, but rather when 1 religious system or school of thought is presented as "the right one" and is studied outside the greater historical and social context within which it exists or emerged from.
Like, how many Christians do you think are aware that much of their cherished Old Testament is just stuff ripped off from religions predating Abrahamic religions by literally thousands of years? Or how much of the Christian tradition is really just reframed Hellenic, Roman, Etruscan, Germanic, Celtic mythology?