Discard Default Router acquired by OSPF

Hi, I have an infraestructure with OSPF and BGP Working.
In this border router I Receive default Gateway from mi service provider via eBGP, but this router receives default gateway from another router too, via OSPF, and I need to discard this second default gateway received by OSPF.
I have tried with in-filters like this in OSPF instance but It’s not working:
add chain=no-def disabled=no rule=
“if (dst in 0.0.0.0/0 && dst-len==0 ) { reject }”

Any help you can provide me I’d be grateful!!!

Thanks

default rule action is reject, if you didn’t accept this route in your input chain before, this rule will be filtered

/routing/route/print where ospf
Flags: F - FILTERED, A - ACTIVE; o - OSPF
Columns: DST-ADDRESS, GATEWAY, AFI, DISTANCE, SCOPE, TARGET-SCOPE, IMMEDIATE-GW
   DST-ADDRESS                GATEWAY                        AFI  DISTANCE  SCOPE  TARGET-SCOPE  IMMEDIATE-GW
Fo 0.0.0.0/0                  172.16.X.X%XXX           ip4       110     20            10  172.16.X.X%XXX

best practice is to accept only things you need…

And you could use simpler rule:
“if (dst == 0.0.0.0/0) { reject }”