Problem/Motivation
If you create a node and call setPublished and immediately save it and call isPublished, you'll find the entity is unpublished when it belongs to a bundle that is being moderated.
Maybe this is the correct behaviour based on the developer not specifying a moderation state, but it's not how it used to work, so it's worth at least an issue discussing what should happen.
(Note, the pass in #7 and fail in #20 in #2825579: Unable to Publish/Unpublish from Content Admin Screen when content_moderation enabled indicates the timeline for when the change occurred, likely the workflow component split).