Michigan is not discriminating against Tesla. They are not saying "only Tesla may not sell direct to consumer." Instead, they are saying "No auto manufacturer, regardless of their state, may sell direct to consumer." Thus, no commerce clause violation.