[inductor] fix type promotion for comparison operations (#95736)
Fixes #95695
Pull Request resolved: https://github.com/pytorch/pytorch/pull/95736
Approved by: https://github.com/Skylion007, https://github.com/desertfire, https://github.com/jansel
Author
Natalia Gimelshein