equal_quantized_cpu requires both inputs are quantized tensor (#95875)
**Summary**
Fix the issue https://github.com/pytorch/pytorch/issues/95291, `equal_quantized_cpu` requires both inputs are quantized tensor.
**Test Plan**
```
python -m pytest test_quantization.py -k test_quantized_equal
```
Pull Request resolved: https://github.com/pytorch/pytorch/pull/95875
Approved by: https://github.com/vkuzo, https://github.com/jgong5