simple comparison function for channels