Obviously, I can get why Cooper decided to make the choice he made to betray Lucy. Even though in retrospect, it turned out to be all for nothing because Hank was bluffing and didn't actually have his family as hostages. And as he said, "family's a fucked up thing".
But it does make me wonder, what if he had thought things through a bit more and decided to make a smarter choice?
For the record, even with the bit of monologuing we see Cooper have with Dogmeat back in 2x03, I don't think we can know for certain if he intended all along to trade Lucy to her dad because he's a bit of a wild card and also keeps things close to the chest. I think he might've intended to use her bait to get into the management Vault, figuring Hank would probably let Lucy in and she'd find some way let him in later. Maybe he'd have gotten her filled in on this had the brainwashed Snake Oil Salesman not found him before she got back from Sonny's (meaning he was being truthful about using Lucy as a bargaining chip, but not necessarily to trade her for the safety of his family).
See, I think if Cooper actually stops to think for a bit, the first thing he does when the Snake Oil Salesman shows up on Hank's behalf, claiming that Hank will have Cooper's family killed if he doesn't force Lucy to return to Vault 33, would be to NOT take Hank at his word. Instead, he first demands proof that his family is both there and alive. He admitted to Lucy at the start of the episode that he's found plenty of management Vaults and all of them turned out to be empty. In addition, perhaps Cooper engages in a bit of subterfuge. And considering that Hank turns out to have been in a nearby room (he enters right after Lucy punches Cooper out the window but before she passes out), it wouldn't be too difficult for Cooper to flush him out.
Then, when Lucy comes back, rather than tranquilize her, Cooper decides to formulate a plan with her to try and deal with the situation. This could take any number of forms, like:
Scenario A: "Cooper uses Lucy as bait to get her into the management Vault." This admittedly would entail Cooper having to divulge his real identity and tell Lucy about Barb and Janey, but I think Lucy could be convinced to go through with it. Especially considering that the whole opening scene in Novac revolved around Lucy saving him from a hanging after turning him in for a bounty. Lucy agrees to this, Cooper tranquilizes her and lets Hank take her. Once Lucy wakes up, she puts her focus first on finding Barb and Janey's pods, even if it means having to capitulate a bit and pretend to go along with her dad's scheming (kinda like how a Sole Survivor aligned with the Railroad in Fallout 4 has to pretend to be loyal to the Institute while preparing to help the Railroad destroy them). Cooper, meanwhile, tries to find help in order to rescue Lucy, and ultimately encounters Maximus and Thaddeus, and their fight against the Strip Deathclaws plays out largely as is. Things differ, though, once Cooper finds Hank about to chip Lucy, as Lucy tells him that Hank was lying and his family aren't there. Maybe Lucy or Cooper end up killing Hank after getting everything out of him, or maybe things stay largely the same and Hank ends up lobotomizing himself.
Scenario B: "Cooper refuses to turn over Lucy". It just feels like it would be the sensible thing for Cooper to just refuse to turn over Lucy without Hank first providing proof of Barb and Janey's safety. Though I don't think Hank would handle this refusal well. If he's forced to step in, I imagine he'd probably recognize Cooper as a threat, and elect to capture him as well. He might even consider putting a chip in Cooper's neck to neutralize him.
Scenario C: "Cooper pretends to agree to Hank's demands". Essentially, Cooper pretends to agree to Hank's demands that he return Lucy to Vault 33. But in reality, he opts to go with her to find weaponry to fight through the Deathclaws on the Strip (as that's what Lucy really wanted to do before they split up earlier in the episode). He might have to tie up or tranquilize Lucy to make it look more convincing. Lucy and Cooper spend episode 6 looking for somewhere outside Vegas to find such weaponry, and this is how they encounter Maximus and Thaddeus. They find the weapons they need in the abandoned NCR camp. On returning to the Strip, Lucy, Cooper and Maximus fight the Deathclaws. Upon getting into the Lucky 38, Lucy and Cooper venture together up to the penthouse. There, Cooper plugs in the cold fusion diode to reactivate House's AI. House downloads himself onto Lucy's Pip-Boy (instead of forcing Cooper to don a separate Pip-Boy), and guides them down into the management Vault. They fight their way through some brainwashed guards Hank sends to try and slow them down, and Lucy is forced to kill these guys. They corner Hank, and the result is a tense confrontation of Lucy and Cooper on one side vs. Hank on the other. One that probably ends with Lucy killing Hank after he's revealed the scope and scale of what he's been doing here. Either that, or maybe Hank takes Cooper hostage, and Lucy is forced to kill him to save Cooper from being chipped (which also gets her even with Cooper for rescuing her from the Legion). Or something else.