The "Is it a __?" series of advancements are still granted to players who look at invisible entities. This does not make sense, because the player shouldn't see anything.
To reproduce:
/give @s minecraft:spyglass
/advancement revoke @s only minecraft:adventure/spyglass_at_parrot
/summon minecraft:parrot ~5 ~ ~ {NoAI:1b,Size:3,Glowing:1b,active_effects:[{duration:-1,amplifier:0b,id:"minecraft:invisibility"}]}
Can confirm in 1.17.1.