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.
dfu
direction
windows-services
multicore
slt
configsection
livenessprobe
candidate-key
hibernate-query
httpconnection
sutime
file-structure
ios-app-signing
tkinter-photoimage
back4app
formulas
unchecked-cast
android-window
windows-10-iot-enterprise
google-tasks
yelp
winscard
email-client
go-cd
page-factory
w3wp
openjdk-11
ioloop
blobxfer
rest