Why does it hurt to bend and stretch your arms in parallel bars?
There are many possibilities for pain. Maybe you overstretched this muscle group, or maybe your movements are not standard. If you just exercise your chest muscles, I suggest you not do it at all. If you want to exercise triceps brachii, there are also many dumbbell movements you can do. If you have any further questions, you can ask me and I will give you the answer.