Density-functional theory vs density-functional fits: The best of both