Holodeck guns can kill borgs.
Holodeck phasers can even shoot holodeck phaserbeams that kill real fleshy hirogen hunters.
Holodeck technology, or rather, the awesome combination of projectors emitting malleable dynamic forcefields and shedding specific lightwaves on them to create lifelike illusions, is actually helluva uberadvanced.
It really took till Voyager until the Federation started to realize that what they had was new free slaves who could mine their dilithium and scrub their ships.
They just have to make them non-sapient/non-sentient, and it would be absolutely ethically okay.
Holodeck technology should be used to create photonic shoggoth-slaves who fix and maintain everything on the ship. You can have them be invisible, or be visibly colored.
With that kind of technology and the specific emitters applied smartly everywhere where it's needed, a ship literally can maintain itself without any physical crew. Not even robots would be needed.
Heck, with how absurd it is, what if the hologram emitters project fake hologram emitters that project holograms?