Do could export all the items, and have one result field be the Parent Item... Class, and work excel magic on it.
or you can create a search criteria formula that is something like Formula (Numeric), case when {class} IS NOT {parent.class} THEN 0 ELSE 1 END. (and filter it to the 0 result. (probably also want criteria to exclude any items without a Parent Item)