I would say groupthink is a form of consensus (an undesirable one),
but not all consensus is groupthink.
Consensus is (very roughly) general agreement. Everyone agreeing
because they're being manipulated to in some underhand way is still
everyone agreeing, however there are other ways of reaching such an
agreement.