Earlier quoted context omitted.
But it isn't "discriminating based on parental leave". It's "discriminating" based on experience. The reason why someone takes a year (or whatever) off isn't the issue. Does this feel unfair in some sense? Yeah. But would it be less unfair to artificially punish the person who didn't take time off? Questionable...
It occurs to me that you're kind of equating a year of holidays with that of having a baby, which ensures the continuation of our species. In our (HN) case, that is putting a few more technologist offsprings into the mix for what that's worth. I can assure you looking after a baby the first year is not leisure time.
The commenter clearly stated their point. Businesses don't care why you have a one year gap. They only care that you have a one year gap.
In no way did they call having a baby a vacation.