For an interesting book-length treatment of this topic, see When Soldiers Say No: Selective Conscientious Objection in the Modern Military, which examines both the philosophical arguments for and against and a selection of case studies from around the world.
https://www.routledge.com/When-Soldiers-Say-No-Selective-Con...