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.
javacv
uicollectionviewdelegate
objdump
copytree
ngrx-reducers
mongodb-biconnector
proto3
mktime
nodebb
wordpress-admin
cider
datetime-local
cdo-climate
autocommit
not-exists
email-formats
detection-idiom
html5boilerplate
mps
custom-attributes
web-deployment
nextcord
datetime2
string-constant
dgrams
sample
kibana-plugin
jobexecutiondecider
signal-strength
inline-variable