I don't think that's the reason she lost the case but the legal team said that if their reasons hadn't worked, that could have been a reason.
I posted about it here, at the time, and someone with legal knowledge said it wouldn't work here, because it's not based on sex, it's actually based on breast feeding rights, without actually mentioning the sex of the person doing the breastfeeding.
I don't think that was to accommodate 'men' breastfeeding. Just the way it was worded.
But, of course, sex is being screwed over as a protected characteristic, because, as we know, men can acquire it and get all women shortlists on the back of it.