Pretty simple: don't give in and agree with him. Ignore him when he gets like this, and do whatever it is the way you want to do it.
Fair warning: he's not going to like this. This could be anything from his being a condescending sexist douche to a need to be smarter than everybody, all the time, but no matter what it is, he's not going to take your refusal to go along with him well. And when he complains, just point out that he's being obnoxious and that it's not his life.
Or, if you just want to teach him a lesson, you could pull a Swedish Lemon Angels on him. Just tell him you've been having a real problem with this recipe and could he try it? Make sure to leave the house for a few hours. And also make sure he understands if something goes wrong (and it will), he'll be the one cleaning it up.