Auto-translated
Cruelty is a function of many variables.
Solomon quite strongly condemned having relations with other men's wives, for example. And there was a lot of other positive things there.
It is also important to understand that there is no ideal role model in the Old Testament, and no "author's remarks" are inserted to indicate whether an action was good or bad, even when it comes to mistakes (as well as positive actions of people).