With some testing I found Merge takes the name of the last selected object in the Object Browser.This also also makes it impossible to choose which name to keep when merging.
On my M3 with Sonoma it is always the bottom element of the list, sequence of selection matters not.With some testing I found Merge takes the name of the last selected object in the Object Browser.