Every good philosopher has to screw it up somewhere. Peter Singer endorses bestiality (providing it doesn’t hurt the animal of course) and Kant, well Kant endorsed infanticide. I still can’t work out how that one can be universalised…
Legislation cannot remove the disgrace of an illegitimate birth … A child that comes into the world apart from marriage is born outside the law … and therefore outside the protection of the law. It has, as it were, stolen into the commonwealth (like contraband merchandise), so that the commonwealth can ignore its existence (since it was not right that it should have come to exist this way), and can therefore also ignore its annihilation.
Immanuel Kant, The Metaphysics of Morals, trans. Mary Gregor (Cambridge, Eng.: Cambridge University Press, 1996), p. 108