I had the idea that a query plugin could provide this functionality, but a query plugin is probably not enough:
The documentation says that a plugin can add some keyword to the query (to indicate we want only the first record), but from what I can see plugins cannot hook into the output procedure of beets (to actually stop the output after the first record).
Or is there an easy way for plugins to hook into the output?