[analyzer][NFC] Fix comparison to True/False (#94038)

from PEP8
(https://peps.python.org/pep-0008/#programming-recommendations):

> Comparisons to singletons like None should always be done with is or
is not, never the equality operators.

Co-authored-by: Eisuke Kawashima <e-kwsm@users.noreply.github.com>
14 jobs for main
in 0 seconds and was queued for 67 minutes and 49 seconds