I think your answer is actually a two-parter..
1) q.How do you have 4 Nodes showing in ESXCLI when it's a 2-socket host? You don't specify the processor type; but, given it's a DL380 Gen10, it's entirely likely you're using an Intel Scalable Processor (Haswell or better) and they introduced a new feature called sub-NUMA Clustering. Think of it like what hyperthreading is to cores, sub-NUMA clustering is to NUMA nodes... It's a BIOS setting enabled by default in HPE Gen10's when you set PowerMode to Virtualization/HighPerformance. See here: Intel® Xeon® Processor Scalable Family Technical Overview | Intel® Software
2) q.Why are some VMs different than others regardless the socket/core config? I suspect the newer auto-vNUMA feature is at play here. Starting in 6.5, vNUMA is no-longer tied to socket/core configs in the vSphere Client. See here for more detail: Virtual Machine vCPU and vNUMA Rightsizing - Rules of Thumb - VMware VROOM! Blog - VMware Blogs