There is no requirement for there to be edge cases or thinsg to be neat - especially when severe development issues are involved. What we can say is that a sex is a strict category based on a reproductive role around a gamete type. That is a sex by definition.