Lodestone compasses appear to be a distinct item from regular compasses, but they are inaccessible to commands.
1. Get a compass
2. Use it on a lodestone
3. /clear @s compass
→ It doesn't clear the lodestone compass, and no other compass item option exists
Cannot /give or /clear a written_book
Impossible to /clear suspicious stew