Illegitimate children
Buddhism concerns itself with the behaviour of people rather than birth status. Refer to MN 98.
In other words, an ethical person who was an illegitimate child is regarded to be superior or happier than an unethical person who was a legitimate child.