Castration is against Church teaching. This is bad - but it does not reflect on what the Church teaches.
That's called hypocrisy. Teaching but not doing.