Quite often the accusation is made that a good and perfect God created something flawed. It is hard to disagree with this when reading the account of the creation of the world:
"The Lord was sorry that he had made man on the earth, and he grieved over it in his heart." Genesis 6
...