It all depends upon what is cruelty. In this country we don't break people on the wheel or cut off body parts, but we do put them into prisons with reportedly bad circumstances. Its possible that flogging would be less cruel. I'm not sure. Killing is actually a very kind sentence in some cases rather than forcing the person to live in the prison system.
You ever watch Wentworth?