Hi @Agung
Thank you for the response,
Based on the information you shared 1234.onmicrosoft.com & ABCD.onmicrosoft.com is
onmicrosoft.com domain it is a default domain provided by Microsoft when you sign up for Microsoft 365 or Azure account It serves as a fallback domain in case you don't own a custom domain.
Each of these have a unique tenant ID and it cannot be merged. which means 1234.onmicrosoft.com carries one tenant & ABCD.onmicrosoft.com carries another tenant.
Howe ever you can create a multiple tenant with one subscription, it might be that you have created another tenant with same account if so, you can check the list of tenants registered under your subscription by login https://portal.azure.com -> search and select Microsoft Entra ID -> overview -> mange tenants which as shown in the below.
By using switch option, you can switch between the directories.
You can also find your tenant ID by using this tool https://www.whatismytenantid.com/ just type your domain name in the link it will shows you the tenant ID of your domain, in this way you can check your both domains tenant id, so that you can conclude is the domains is in the same organization are not.
Hope this helps. Do let us know if you have any further queries by responding in the comments section.