As much as I do not have an issue with homosexuality and I though concider it a private issue, if a Soldier came to me to told me he was gay I would still have to pursue UCML action because one, it is a UCMJ action and two (and the more critical point), for the Soldiers protection.
I'm unfamiliar with your first reason, but as for the second; if the soldier were to tell you in confidence (hypothetically), then why would you need to ensure his protection from the homophobes by reporting him? Can't you just keep a secret?