Examples I haven't seen mentioned yet: Firefox. Atom/VSCode (Sublime Text clones). Android (iOS clone). Various databases (postgres, mongodb, etc). Reddit (Digg alternative, since closed source) though I'm not sure releasing their source code had anything to do with their success. HashiCorp in general sort of counts though it's harder to say "it was competing against X".
Care to elaborate in what ways Firefox counts as successful? Maybe it had a brief period of success ( maybe ) but that was long ago.
Could it have done even better for itself? Sure. Being the best possible version of yourself isn't necessary to have been successful though.