Level 38 is solved with a set sequence rather than improvisation. The order given is:
1. White — middle (4)
2. Blue — right (4)
3. Yellow — bottom (3)
4. Orange — bottom (7)
5. Bomb — left
6. Yellow (5)
7. Pill — left
8. Pill OR Blue (3)
The numbers in brackets indicate the count for each step, and the sequence matters — clearing pairs out of order leaves you with a stranded capsule and no legal move, which is the usual reason a run fails near the end.
If you go wrong, restart and follow the order exactly rather than adapting on the fly. This level has very little margin for deviation.