You first filtered element collector selects absolutely all element types, regardless whether system family or not.
You second filtered element collector selects all elements that are NOT element types and whose name contains XYZ.
Neither of these two matches your description.
Hence, I do not understand what you are trying to achieve.
Have you sorted out your goal manually in the user interface, so that you know what you want to achieve, and have proved that it is possible and makes sense?