Created by Kei Sanbe, Erased is a beloved manga that received an anime adaptation while it was still in publication. Like a lot of anime that air simultaneously to the source material, the endings don't match, because the studio couldn't predict what Sanbe had in mind for the conclusion. That made Erased's conclusion controversial.
Source:https://www.cbr.com/erased-anime-manga-differences-controversy/