Don’t marry a person with kids if you can’t deal with the kids’ other parent and you’re not prepared to regularly see the kid. It’s okay to acknowledge that you don’t have what it takes to be a stepparent, but if you’re going to be one, you can’t do ANY of what Z is doing.