I'm not sure what you mean by monitor resolution but if you mean comparing the screen real estate you have in e.g. 32" flat area in an HMD versus a modern monitor it's both correct and irrelevant. Yes a relatively affordable modern monitor will have way better resolution compared to even the most expensive HMD but ... that's not correct since you can have whatever surface, even multiple layers, you can use as screen real estate. You can also adjust readibility, e.g changing font size, based on distance, have foveated rendering from eye tracking, and lots of other techniques that are impossible with just a normal monitor.
IMHO usable real estate relative to the task (because coding doesn't have the same need as video editing, 3D modeling, etc) is a proper way to compare, not pixel density or anything or the sort that doesn't take what VR can actually offer.
PS: I do spend times in HMDs to work, including Vision Pro, Varjo, Frame, other HMD I can't mention, and in my experience it did already reach point where it is actually "good enough" for most tasks even one where a lot of text (which is typically quite demanding for readibility) is needed, but we don't have the same eyes, workflow, etc. It is though not good enough if you try to reproduce what you already have and compare exactly, but it's also not the point.