HoloLens 2 had higher pixel density than AVP at 2K horizontal resolution at 43deg HFOV. So yeah, you just didn't know HoloLens had 23megapixel displays to show high resolution text for coding, nearly a decade ago.
The problem was the same as today. Dead numb market response to non-SteamVR VR/MR/AR/XR headsets.
HoloLens 1: 1280 x 720 (per eye)
HoloLens 2: 2048 x 1080 (per eye)
Vision Pro: 3660 x 3200 (per eye)
Yah no one was gonna buy HoloLens as a desktop monitor replacement. It really was a crap product.
People ARE using Vision Pro as a desktop monitor replacement.