Ok, ditched all the dynamic routing and switched to a more classic setup with gateway monitoring and policy routing with gateway groups as destination.
This almost worked, except return traffic for connections coming in via the wireguard tunnel on my inner firewall went back out to the wrong interface, instead of sticking to the stateful rule that passed it in.
Turns out OPNsense has a default advanced setting that disables the reply-to flag for rules on WAN interfaces ("Disable reply-to", apparently including tunnels). There's an override in individual rules, but it doesn' allow selecting a gateway group, so I guess my only choice is changing the global setting...