Don't steal material. I know the temptation, sometimes you see a joke that would fit just perfect with something you have, man oh man it would sell the whole piece etc etc
There's no excuse good enough. If you see a joke that is like that it simply means you need to write and think about your act even more. It's a muse calling you out, that's all.
You should perhaps thank the comic for opening a new level for you or inspiring you and let it go at that, take the lesson but DON'T by any means, take the joke.
There's so much baggage that comes with stealing material that it never in the long run works out.
Even if you 'make it' using lifted thoughts and jokes etc, you are tainted in the eyes of everyone, not just other entertainers but by the audience itself. Do you really want that everytime somebody sees a promo pic on you the first thing they say is,
“I hear he/she is a big joke thief, rips off other comic's jokes!”
I guess if you can live with that or if you want to chance that it will (thanks to social media in part) come crashing in on you as it has for some unfortunate thieves, then have had it. But know ahead of time that I think you're scummy.