From what i understand the 'g' pronunciation is entirely dependent on the vowel following in, in a completely regular manner. So still a lot better than English.
I used to work with a guy named Gerardo Ochoa. His username was gochoa, but when addressing him in person we'd sometimes call him "jochoa." (Not his real name or username, but what I'm describing is true in its essence.)