Since you want specific content for each user group, simply create multiple Email Template with different contents.
Then While sending Email using TransportBuilder, just change the templates based on customer user groups.
$transport = $this->_transportBuilder
->setTemplateIdentifier('send_email_email_template') // this code we have mentioned in the email_templates.xml
->setTemplateOptions(
[
'area' => \Magento\Framework\App\Area::AREA_FRONTEND, // this is using frontend area to get the template file
'store' => \Magento\Store\Model\Store::DEFAULT_STORE_ID,
]
)
->setTemplateVars(['data' => $postObject])
->setFrom($sender)
->addTo($this->scopeConfig->getValue(self::XML_PATH_EMAIL_RECIPIENT, $storeScope))
->getTransport();
Check conditons based on user group and change the template Identifier.
if(userGroup == 'a'){
setTemplateIdentifier('send_email_email_template')
}elseif (userGroup == 'b'){
setTemplateIdentifier('some_other_email_template')
}