Consistent causal discovery with equal error variances: a least-squares perspective