Altium Designer: Not assigning all the sub-parts of a device
As far as I know you can't. If you want to optimize part usage, then introduce multiple levels of hierarchy where you bring the partly used comparator out of the repeated subsheet up one level higher.
This will limit your ability to use the REPEAT statement, just create N instances of your design - in my opinion it's much more intuitive than using the REPEAT statement.