Lodestone compasses appear to be a distinct item from regular compasses, but they are inaccessible to commands.
How to reproduce
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