I'm confident that if Moffat was asked if he had based the twelfth doctor on Dr House, he would refute it emphatically. However, if Moffat were asked about the similarities in character traits I'm sure he would also see some common ground as you have.
Mr Lister's comment that he "I heard that House was based on Sherlock Holmes" is very interesting as we have seen the edges of the Doctor and Sherlock bleed into each over this series and Moffat writes for both characters and is a big fan of Conan Doyle. A whole sequence in "Heaven Sent" deconstructed the Doctor's thinking and actions in order to calculate acceleration due to local gravity (letting the eyepiece fall) and distance to whatever was below the window (throw bench, listen, count, hear splash etc.).
In an interview in the Radio Times, Moffat says that "Doyle told
us how to do it. His cleverness was laid out for us 100 years ago.
Those deductions are hell. They’re very hard to write but as a
demonstrated intellectual skill, it’s pretty unstoppable. Doyle’s
first point about detectives was: you can’t just say they’re clever,
they’ve got to be clever. Every episode we try to have a new cool
deduction that makes sense. Now, if you deconstruct most of them,
Sherlock has a lucky knack of always guessing right, but let’s leave
that aside, it’s the deductions that make him clever. Very often in
the stories we tell of Sherlock are the days he fails or gets too
emotional, because the most dramatic tale to tell about a clever man
is that being clever isn’t enough."
If Mr Lister's source is correct, and I'm sure it will be, neither one is based on the other but both House and the twelfth incarnation Doctor do appear to share a common ancestor.