In Avengers: Infinity War, when Gamora is explaining what Thanos intends to do with the Infinity Stones,
Gamora: The entire time I knew Thanos, he only ever had one goal: To bring balance to the Universe by wiping out half of all life. He used to kill people planet by planet, massacre by massacre.
Drax: Including my own.
Gamora: If he gets all six Infinity Stones, he can do it with the snap of his fingers, like this. [She snaps her fingers.]
Avengers: Infinity War (2018)
Later, when Thanos arrives at Titan,
Doctor Stephen Strange: Who wants to murder trillions.
Thanos: With all six stones, I could simply snap my fingers, and they would all cease to exist. I call that... mercy.
Avengers: Infinity War (2018)
Both instances indicating that the "Snap" is intended for living beings only. However, in Avengers: Endgame, we see that
when Tony snaps, the cavalry like the Chitauri ships and Outriders' ships etc. are dusted as well.
Avengers: Endgame (2019)
Have the writers given any explanation on this?