You're probably better off chopping it, I'd reckon. Its certainly quicker to chop an onion than it would be to grate it. Theres alot of water in an onion so its hard not to get it mushy. Could always ball it up afterward in a towel and twist the towel at the top of the ball to squeeze all the liquid out if you really wanted to usea grater.