Hi,
Based on my experience, there is no requirement for the order to migrate which one firstly.
Note ,before any changes, back up the DFS and AD .
For the migration,to avoid more risks, i would recommend add the new server to act as DC and DFS-N server, when everything works well , then delete the old one.
More information for your reference:
Add the new server to domain ,promote the server to a new DC,wait for the replication ,make sure that the replication are finished and everything works well , you can check that by the command:
Dcdiag /v >c:\dcdiag1.log
Repadmin /showrepl >C:\repl.txt
Repadmin /showreps *
Repadmin /syncall /APeD
Add the new server to be the DFS-N server, wait for the replication .
When the new server can working well as DFS-N server, you can delete the old server from the DFSN- servers.
https://video2.skills-academy.com/en-us/windows-server/storage/dfs-namespaces/add-namespace-servers-to-a-domain-based-dfs-namespace
Demote the old DC,if the DC hold the FSMO roles, you also need to transfer the roles to the new DCs, you can refer to the following link:
https://video2.skills-academy.com/en-us/windows-server/identity/ad-ds/deploy/upgrade-domain-controllers