export const compareStrings = ({ left = '', right = '', maxDistance = left.length } = {}) => {
Compares two strings and returns their Hamming distance.
Stops early once the distance becomes greater than maxDistance.
Target style API. Preferred for new code.