What's the difference between a secure compare and a simple ==(=)

Github's securing webhooks page says: Using a plain == operator is not advised. A method like secure_compare performs a “constant time” string comparison, which renders it safe from certain timing