Magnetohydrodynamic Modeling of a Solar Eruption Associated with an X9.3 Flare Observed in the Active Region 12673