awk -F'\t' '$1 ~/^comp-/ && $2 ~/^comp-/' infile
same but pass the pattern from a parameter:
awk -F'\t' -v pat='comp-' '$1 ~"^" pat && $2 ~"^" pat' infile
or compare as string match and still pass from a parameter:
awk -F'\t' -v str='comp-' 'index($1, str)==1 && index($2, str)==1' infile
see also How do I find the text that matches a pattern? for other matching options.