I think this is looking at it wrong. If AI can do boring science it frees us up to do imaginative and fun science without the constraints of capitalism. You don’t have to worry about your science being valuable enough
If AI has gotten to the point of doing nearly all science for humanity, we are probably close to, if not already at, a post-capitalist state. The implication being there's no real resource scarcity at that point.