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.
aws-direct-connect
gen-tcp
scncamera
scd
scosta
android-webview
cgi-bin
flutter-cubit
java-native-library
ssi
bogus
depth-camera
hyperterminal
pspdfkit
dynamics-crm-2013
linear-optimization
binomial-heap
zpl-ii
rsocket-js
concourse-pipeline
texteditingcontroller
featherwing
ghcr
rating
entity-framework-plus
web-sys
react-native-braintree-dropin-ui
lz77
xlsx
awscognitotoken