Ngl, Ernesto was written pretty well. I like that killing Hector and stealing his songs caused a lot. It caused Hector's entire family to hate him because they thought that he abandoned them when really, he just wanted to return to Coco. This shows that Ernesto is just willing to do anything to keep up his reputation