I would solve it like this:
<div onclick={(e) => { e.stopPropagation(); someFunc();}}> <button onclick={otherFunc}></button> </div>