Ordinarily WordPress only allows Editors and Administrators to moderate comments, and both roles require those capabilities.
This page from the Codex does an excellent job of explaining roles and capabilities:
https://wordpress.org/support/article/roles-and-capabilities/
You can manually create a new Role and assign to it only the capabilities you want the Role to have, so that those you designate to moderate comments can, or not, have the ability to create/edit/publish posts.
Alternatively there are several great plugins that allow you to customize capabilities based on Role, as well as add new Roles, etc. I would encourage you to try one in order to tighten up who can do what.
One that I’ve used and really like is this one:
Related Posts:
- Capability for allowing user to post own comments without moderation
- How to change the email notification recipient (user) for new comments?
- Users with custom roles can’t read each other’s comments
- Allow contributors to moderate comments comments on posts they write
- Why the capability ‘activate_plugins’ is needed to allow a role to see all posts/pages/comments?
- 3 moderators to approve comment
- How to auto-approve internal pingbacks?
- Exclude internal links from comment moderation?
- Multiple Comment Moderators and Notifications
- how to make author to write comment on only his own posts?
- Add a drop down list to comment form?
- Prevent Contributor to show comment list
- Add delete, approve, spam Links to Comments
- Expanding the allowed HTML tags in comments?
- Get the number of comments awaiting moderation
- How to allow a particular role like Contributor be able to only view pending comments and approve them?
- edit_comment capability for subscriber
- Community Moderation Plugin for Comments [closed]
- Hold comments for moderation only if user is not logged in
- Why are authors allowed to approve comments on their posts? How to revoke privilege?
- show if comment is in moderation
- Reject Comments Based on Author Email
- Author can only see own post comment and can moderate
- How to moderate (manually approve) comments of a specific (registered) User
- Comment Moderation and CDN Caching
- WordPress comments – how to check if comment still needs to be approved?
- Show comments of a user post only when they are login
- Why does akismet prevent jetpack comments from appearing in my moderation queue? [closed]
- Grant a person permission to moderate all comments on a blog without giving them the ability to edit other peoples post
- How Do I Allow Comment Moderation for Other User’s Posts?
- Only Allow post author and “Premium” Role user to comment
- Sending comment notifications to different recipients depending on taxonomy terms
- Show image next to the comment author if have certain role
- Is there a way to only allow certain user ranks to comment on a post
- Who approved a comment, to show up in dashboard
- Allow comments only for custom post type
- Can I allow registered users to comment without being logged in or having to be approved?
- Showing different images depending on user role
- Comment moderation
- Disable comment moderation in multisite
- Listing comment author role code problem
- Comment Blacklist
- Embed a page within WordPress dashboard?
- comment awaiting moderation
- Customize the new comment notifications sent to the post author after the comment is approved
- Temporary capability for current_user_can()
- Using WordPress’ WYSIWYG for comments
- How to check user role without using current_user_can()
- Showing comments only to same custom user role
- Can I change what fields are displayed in the Comments form?
- Top Commenters: exclude admin
- Comments to Custom Post Type
- Wrong gravatar showing up?
- How to restrict specific post types from being read or added by specific user roles (eg. author)?
- Comments Pagination as an unordered list
- How to get comments from multiple post type?
- Check the Comment in Reply or Normal State
- Show last n comments
- Threaded commenting: how to show threads by last active first?
- Get User Role by ID not working
- WordPress comments on users profile
- wordpress threaded comments – customize nested ul / how child ul is displayd
- How to make a secure blog that is completely private?
- identify and delete spam comments from 3000 pending comments
- How unrequire comment text in wordpress post
- Auto delete comment if Contains
- API Hook for After Commenting (for sharing on Facebook)
- Can comments by a logged-in user be displayed at the top?
- How to set individual capability of post type in individual category
- Allowing user to edit posts based on the post status
- Placed on + only date (not time)
- Loading Comments From a Class?
- Create a User Role with permissions to only upload files to the media library?
- How many members have made comments approved for an article?
- How to get a value from comment meta
- reCaptcha doesnt appear in comment (manual or plugin)
- Comment System showing different type of IP
- Exclude the word comment from being referenced
- What is the earliest hook comment meta can be saved?
- Is this a wordpress bug? get_comment_link auto shoots when user visits his dashboard
- Comments and pingbacks issues
- Adding plugin editing capability for Author
- How to load new posts from wordpress db into wordpress homepage without refreshing the site?
- how show attachment image in comments query
- Automatically register users with comments
- Comments only displaying when logged in
- Same comment section on every page
- Unable to view comments on my website
- Using WordPress core pop-up comment function, doesn’t popup, maybe an elementor issue
- Comments editor not rendering   and tag
- How to call out the date of user’s first comment?
- A different role for each site in a multisite
- Show comments based on user role in front end
- Trying to get property of non-object notices in comment-template.php
- How do you remove the ability for a user to make a comment or post on a page?
- wp_trash_post retrashes already trashed comments?
- Need to create admin user without capability to create user
- wp_list_comments() only returns when user is loged in
- How do you fetch the authors email or IP from /comments? (REST API)
- edit slider plugin capability for custom_role