If you’re in Creative mode and want to quickly access a redstone comparator, here’s where you can find it in the Creative Inventory menu:
Java Edition (PC/Mac): Versions 1.8 to 1.19 under “Redstone” and versions 1.19.3 to 1.19.4 under “Redstone Blocks”