TMNT Genesis v0.5.0
If I eliminate the foot soldiers that appear, and calmly proceed to the right, breaking the chandeliers with candles, and eliminating the new foot soldiers that appear, eliminating the tigers. I reach the end, defeat the boss, and throughout level 5-2, there will be no graphical glitch.
But if from the beginning of level 5-2, I ignore all enemies, and move as quickly as possible to the right. my theory is that the Mega Drive's VDP is overloaded with so many sprites on the screen, as there are no stopping points that will only allow me to advance if I defeat all the foot soldiers in the place.
Foot soldiers, chandeliers, bamboo stakes, holes in the floor where foot soldiers come out, tigers, all of these are sprites, which, because there are so many, in my opinion corrupt the VDP.
In the image, after running through level 5-2, I get stuck there, unable to complete the level.

ROBOT-RANDOM, run a test: advance very slowly. Eliminate all sprites before proceeding, and see if you can make it to the end without any glitches.