His consciousness was not a machine — but the devil was treating it like a machine and at some level he accepted the abuse.
I personally find homosexual behavior disgusting, but it’s difficult to regard it as a greater sin than suicide, adultery, theft, lying, or other prohibited behaviors. A different class of sin, perhaps, but not a greater sin.