There are lots of CSS pseudo selectors. Some of them are more useful in some scenarios in my opinion.
:nth-of-type(n) selector is very similar tor :nth-child selector but in some cases it is more handy.
With the nth-of-type you can target elements like <p> within a container. Thus, it would be easier.
On that note, I wouldn’t recommend specific targeting on elements but who knows, you might need it. The example below show the operational principles of the nth-of-type.