They don't seem to do the check when you apply. Years ago I fat-fingered my passport number, the ESTA went through fine, but I was refused at the airport due to my typo.
I had to make a new one on the spot, was no problem, but it seems that they will just approve the ESTA when applying for it, and then later refuse you if they want.