On the regularity of minimizers to degenerate functionals