Perfection should generally be avoided in a character. Real people, such as your readers, aren’t flawless and chances are they are not going to be able to fully identify with a character who is.
In real life people do occasionally act out of character or do things we wouldn’t normally expect them to do. In fiction, there should be a good reason for a character to do something outside of the ordinary.
By mastering character and plot, you give your book a fighting chance and without character and plot, no book can survive.
Characters are the lifeblood of any good book.