Large CO2 emissions constitute a significant problem today due to their effect on climate change, and the need to design appropriate energy policies to mitigate their consequences and reduce emissions requires a detailed analysis of one of the main sources of such emissions: the electricity system. Thus, this paper presents a study on the effects of energy policies on decarbonization by comparing the detailed phase-out of coal-fired power plants across a range of cases with the implementation of a carbon tax to meet Nationally Determined Contributions (NDCs). The case study focuses on the Chilean electricity system, using a long-term generation and transmission expansion planning model (GTEP) that incorporates a wide range of generation technologies. The study examines the long-term effects of these policies, including costs, investments, and CO2 emissions, as well as their impact on consumer prices reflected in the marginal costs of the system. The transmission system modeling covers various regions of Chile and significant projections for renewable energy sources. It evaluates three economic scenarios based on generation technology costs, fuel prices, and electricity demand under four different closure schemes and fourteen different carbon tax levels. The results indicate that implementing a carbon tax can be more cost-effective for the system than the implementation of a phase-out schedule for coal plants, taking the form of reduced CO2 emission and overall system costs, with an optimal carbon tax value of 37 USD/tCO2. Additionally, the study reveals significant effects on consumer prices, showing that a carbon tax as an energy policy leads to lower prices compared to a phase-out scheme.