Goes before in place or time, or voluntarily gives up something.
From Old English 'forgan' combining 'fore-' (before) and 'gon' (go). By the 1500s it developed a second meaning: to go without or abstain from, possibly influenced by 'forego' sounding like 'for-go' (to go for, or away from).
English is tricky—'foregoes' can mean two opposite things depending on context: it can mean something comes first in time, or that someone deliberately skips it, like forgoing dessert!
Complete word intelligence in one call. Free tier — 50 lookups/day.