The $add
function internally calls Firebase.push(), which is unique across all paths for a given Firebase instance. These are timestamp-based UUIDs that sort chronologically, and are semi-impossible to obtain a duplicate.
If there are duplicate references in two unassociated lists, then there is more at play here and code that reproduces the error would be necessary to delve any further into the problem.