Replicators won't dispense with capitalism, at least not automatically. Replicators need tremendous energy which can be privately controlled, plus capitalism can maintain minority control over a technology like this via trade secrets etc. and keep selling the technology for high prices. If you're thinking that you can just use a replicator to make more replicators, that's kinda like asking a 3D printer to 3D print another 3D printer, or asking an LLM to just program another LLM.
No, we need to dispense with capitalism ourselves instead of hoping for a magical technology to do it for us.