Trump definitely has the better legal end of this argument.
Trump may have the legal argument, but it will be judge shopped in the DC court and find a judge that will say the President doesn’t have the authority to name a replacement.