The second sentence, making reference to the notion of object, could in principle avoid AAD, if there were independent criteria of deciding when a clausal dependent "functions like an object".
note that the UD guidelines are actually inconsistent about the status of the immediately post-verbal nP in double object constructions.