をよそに・を顧みず: the difference
をよそにN1
Meaning
Ignoring, Disregarding, Despite
Past papers
Tested once in past papers
Example
メアリーと武は親の反対を余所に一緒になった。
Ignoring their parents' objections, Mary and Takeshi got married.
を顧みずN1
Meaning
Without regard for, Ignoring, Without concern for
Past papers
Example
命の危険を顧みず高所で作業を続けた建設作業員たちの努力は称賛されるべきだ。
The efforts of the construction workers who continued working at high altitudes without regard for the danger to their lives should be praised.
How to tell them apart
「〜をよそに」: ignoring other people's feelings, worries, objections or criticism; cold toward others.
「〜を顧みず」: disregarding your own danger, family or life; careless about your own stake.