It simply is pill with peanut butter
Here’s what would actually happen if this fictional scenario did occur:
If someone hands me something to consume, no matter how much I trust them, I would ask “cool thanks, what’s in the sandwich?”
Now you, a non-deceiver, would say “peanut butter and pharmaceuticals”. And I would say “oh, I’m not sure I want that, but thanks for being honest”
I hope you see how this analogy does not map to dogs.
It would not be a deception in the scenario you presented, but it also might not be effective in getting the dog to swallow the pill.
The first day I got my dog, he had parasites in his ears and stomach. We had to force down gross medicines into his ears and his mouth, and he hated it and us for it.
Three years later we have built up so much trust that I clean his ears every bath and he stands still and waits for me to do it. He still hates it, but he trusts me and knows that I'm not trying to hurt him.