High-temperature superconducting REBCO coated conductor is one of the main candidates for next-generation high field magnets in fusion reactors and particle accelerators owing to their high current-carrying capability. Although these materials can operate at higher temperatures and generate higher magnetic fields than their counterparts with lower critical temperatures, protecting the REBCO magnet against quench is challenging. A variety of candidate technologies that may be able to enable self-protection, including no-insulation technology and insulative coatings with temperature-dependent resistance, are in development. In order to understand current sharing and thermal processes during a quench, we model a REBCO pancake coil as an electrical circuit, considering power generation and heat transfer along conductor turns, and study the current distribution around a local defect with lower critical current. The magnetic field and coil terminal voltage predicted by the simulation was compared to published experimental results. Our results provide useful insights into how current sharing occurs around defects.