TIL:
console.log(JSON.stringify(new Set(["bla", "foo"])))
prints
{}
which does not mean that the set was empty.
ChatGPT found it after three rounds of finding errors that were no errors at all and
> I apologize for the confusion. Upon further inspection, I see another issue in the code.