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.
contextmenu
pinnacle-cart
es6-class
wildfly-21
graphqlclient
icarousel
availability
system-restore
knime
assimp
gulp-nunjucks-render
paypal-subscriptions
nine-patch
nm
pfobject
multiple-arguments
icingaweb
resourcedictionary
expo
pandas.excelwriter
pyscipopt
my.resources
libreoffice-draw
userdefaults
new-style-class
word-size
uiview
rmagick
anchorpoint
nestjs-graphql