Dan Luu wrote a blog investigating this exact comparison and also didn't have good enough data to draw a strong conclusion.
In practice, there are plenty of lawyers who are in-house counsels for large companies, own successful law practices in smaller cities and large towns, etc. who make decent money often in moderate cost of living areas.