Subject in front of background with depth. Take a close viewpoint and zoom in. Focus on subject then without changing focal length set focus to infinity.
The first lesson I learnt was not checking quality. It is apparent there was a rain drop. Because of this the and poor focusing which on a small screen I didn’t notice meant I had to use a shot with a slightly different angle.
Apart from that I think the second shot works better because there is something to focus on. However apart from the top frame there is not much else of interest in the frame, whereas with the first shot there is more to see in the whole frame.