Having now done a bit of actual reading rather than just spouting off what was at the top of my head, I agree with you.
The US Copyright Office has a very useful page on AI and copyright:
Obviously that’s only the Copyright Offices’ view and courts (and other jurisdictions) might well take a different view but having read some of the decisions posted there, the reasoning seems sound.