Compare ObjectId to either string or ObjectId