Suppose I have a cats.bib and hats.bib which I want to use in an article on cats in hats. There already is an existing paper about that (well, sort of), which I have in both files.
Now, I do not want to merge these files (unlike in this question and this one). I am willing to allow whatever tool I use to ignore the possibility of differences between the entries and just pick whichever one it likes (not even consistently; I mean, I'm willing to guarantree they're really copies of the same entry). Under these conditions, what can I do to be able to use both bibliographies in my LaTeX document without getting any errors?
If you suggest doing something temporarily merging them just for the purpose of compiling the document, please sugget something which would integrate into, say, latexmk, so that I don't have to repeatedly do it manually, and hopefully also that whatever tool does this gets the bibliography names from the .tex file itself rather than apriori.

bib-files using\addbibresourceif you are using recommendedbiblatex. If there are double defined keys you will only get warnings about this. – Schweinebacke Feb 03 '17 at 13:59.bibfiles are in bibtex format, you might find some help in nelson beebe's "bibliographer's toolbox". the tools have been around for a long time and are quite well tested and robust. – barbara beeton Feb 03 '17 at 14:40amsrefs, but i've seen questions that implied thatbiberis sometimes involved, and i know nothing about that. – barbara beeton Feb 03 '17 at 14:46