Exactly this. You just put them on the spot and they lose face and you're embarrassing them.
Besides this interaction has already made it know they they don't know the answer so what's the benefit of forcing them to announce they they don't know something?
I've only been in a peer to peer type of working relationships with people I'd consider coworkers so I wouldn't think it'd be very fruitful to start agitating people in such a position.