Hi Peter,
In every case I’ve seen, when F doesn’t behave the way you expect, the Selection is different from what you think it is. In your case, I highly suspect that you have double Vertices (very likely in combination with inconsistent Normals).
The solution is, (in Edit Mode): A (to Select everything) and then M . Merge > By Distance, (immediately) followed by SHIFT+N. But before you try Filling again, make sure that both Meshes are part of the same Object (they might be, but really make sure they are!). If they are not, switch to Object Mode and then CTRL+J to combine (Join) them into a single Object.