Children's advocates and police are calling for more discretion to keep kids out of court, an inquiry has been told.