Some skills function differently for the AI and players, so it may well be that the AI can use Holy Light to damage a dark/death mark player or itself even though that doesn't work for a player.
For a more easily spotted case of "same skill, different effect", grow a huge mutant and have Gemini TU it. They will get a weak mutant, whereas you will get an equal or stronger mutant if you were to TU it.