Output type comparison logic