Unity's Raycast functions has a parameter you could use to raycast to a particular GameObject. You can also use that parameter to ignore particular GameObject.
android-background
moo
default-programs
google-health
websphere-9
jenkins-spock
webfiltering
string-conversion
python-cmd
quickblox-android
avplayerlayer
mariadb-10.4
index-sequence
bcel
flutter-provider
riff
rdynamic
ifs
asynchronous-javascript
apportable
openrefine
2-3-tree
qtreewidgetitem
test-data
squirrel
erase-remove-idiom
cross-domain-policy
jline
apache-httpcomponents
navigation