VMware NSX
VMware NSX-T
The behavior is as designed.
NSX does not compare MED from eBGP peers that have different ASNs and the same AS-path length.
No equivalent of bgp always-compare-med is available on NSX.
To prefer one route to another, configure either workaround.