Orthology relations, symbolic ultrametrics, and cographs