Would you rather get a fully loaded compact, or middle trim midsize?
While a loaded compact will include all the bells and whistles like leather seats, all safety features, LED headlights, etc., those may already come standard in the middle trim midsize.
Also, would you rather get a loaded 2017/2018 compact, or a midsize that is about to be replaced (i.e. 2017 Camry/Accord/Mazda6)? Outgoing models get like $2000 to $4000 off MSRP.
I brought up the Civic because the newest iteration is pushing the envelope in terms of class size. While the exterior dimensions are smaller, the interior size (passenger and trunk space) are actually very close to say Camry or Mazda6. Then again, it's still a Civic, so insurance rates on a "compact" is still higher than a midsize.