Rendering Feestyle along with grease pencil (Edited*)

(I edited this post. I think the way I wrote it before was a bit confusing*)

Hello everyone! I’ve been trying to render a grease pencil drawing on top of a Freestyle rendered object. But, when I do it the Freestyle lines can be seen behind the Grease Pencil object. Is there a way to solve this?

I made an example with a blue circle made with Grease Pencil, in front of a cube rendered with Freestyle.

I’ve tried using Eevee, Cycles and Benchmark.

Thanks in advance.