We demonstrate a differential optical comparator using AlGaAs pnpn optical switches connected in parallel. The experimental result shows good differential switching for two input lights from laser diodes. The simplicity of the configuration makes it suitable for monolithic 2D arrays needed in future optical parallel processing.