Its not immersion at all. Its completely ridiculous to suggest players want other players weapons to arbitrarily not hurt their ships for immersion. Can you come up with a sensible in universe reason why a ships weapons would magically do no damage because the pilot of the target ship was in a specific class of people?
Of course we can. It is a G A M E. You know, there is a very simple solution to your perceived problem - don't play in that hypothetical, and oh so immersion breaking Open PVE mode, like, ever. No-one is forcing you to.