I’m not a coder.
To hide the category selector when you edit the first post (from the edit post action, not the edit title), this works:
<script type="text/discourse-plugin" version="1.6.0">
let currentUser = api.getCurrentUser();
api.modifyClass("component:composer-title", {
pluginId: "PreventCategoryChange",
didInsertElement: function() {
if(currentUser.trust_level == 1) {
let categoryInput = document.getElementsByClassName('category-input')[0];
let miniTagChoser = document.getElementsByClassName('mini-tag-chooser')[0];
if(categoryInput != null) {
categoryInput.remove();
if(miniTagChoser != null) {
miniTagChoser.style.marginLeft = '0';
}
}
}
}
});
</script>

I used the trust level, but I think you can manage to check the user group instead, it’s all in the currentUser object.
I don’t know how to dynamically remove the category selector when we edit the title.
Maybe you can figure it out from the files that seems related: