I came across Marionettes, Inc, a story from Ray Bradbury's short story collection called The Illustrated Man.
The characters are Braling and Smith and their wives. Braling's wife was quite mean to him and forced him to marry her, while Smith's wife acted as if they were still honeymooning.
Smith learns about "marionettes", exact robotic duplicates produced by Marionettes, Inc. The manufacturer, whose motto is in the markets of the marionettes as temporary replacements for the customer. Braling reveals to Smith that he has been using a marionette to fulfill his obligations as a husband while he pursues his personal interests. His wife is completely unaware of the duplication, and he plans to visit Rio de Janeiro while his marionette is replacing him at home. Braling shows off his marionette to Smith. Smith, fascinated by this solution, decides to buy his own marionette to escape his domestic prison.
Conflict is introduced when Braling's duplicate expresses emotions towards Braling's wife, and resists Braling's attempts to remove the marionette from his home life. Smith then finds out that he himself has been tricked by his wife's own marionette, and that she took $10,000 of the $15,000 they had in their joint bank account.
Braling tries to call Marionettes, Inc. for support, but is physically restrained by the duplicate. The marionette reveals his plans of traveling to Rio with Braling's wife and locking his master in a box, and then says goodbye to his owner.
The story ends in the bedroom with "Braling" kissing Mrs. Braling, but Bradbury skillfully uses pronouns to make it unclear whether "Braling" is really Braling or his marionette duplicate. The reader's interpretation could indicate either that the duplicate has disposed of his former master, or that Braling has won out and subsequently found new appreciation for his wife.
Burgess Meredith recorded Marionettes, Inc on the B side of a record titled: Burgess Meredith Reads Ray Bradbury