The Dirichlet problem for elliptic and degenerate elliptic equations, and related results