Oilers are $341K over the cap now. So they are in cap trouble already, even if they only match one of the two. Obviously in the off-season, they can go 10% over the cap, but they'd have about 2 months to become cap compliant. They're already vulnerable in trades to simply create space.
And if they match one of the two or even both, they will become even more vulnerable. I believe that even if they place Kane on off-season LTIR, they will only create enough space for one of the two. But they'd still need to create room because when Evander Kane gets back, they won't have room as things stand now.