It's a win for Castillo. That said, as much as we'd like to compare him to Evo, Morales had a wide margin and backing from very well organized social movements. None of that is in place here, which will make Castillo's presidency a constant challenge.
This means that even beyond the current attempt to cancel the election results by annulling votes, implementing his program is going to be extremely hard. Castillo campaigned on a constitutional process and nationalizations.