I disagree with that. I'm going as far as saying that D&D was Medieval Fantasy up and until 5e, and only 5e24 really, consciously moved away from medieval, and even then, it still is closer to medieval fantasy than anything else. Yes, even Dark Sun and Planescape. You can refine those genres...