Added preference for stdlib's compare_digest to constant_time

Fixes #1210