No, the events are nowhere near able to be called "nearly identical". Jesus was arrested and crucified. The bab was hung from a rope and shot at. When the shots broke the rope he tried to flee, but he was brought back and shot proper. Being accused of apostasy is the only connection between the two, but you might as well compare every apostate every slain to Jesus at that point.
That is not the story told with justice and the events are uncannily connected.
https://www.google.com.au/url?sa=t&source=web&rct=j&url=http://phoenixbahaicommunity.org/wp-content/uploads/2012/10/Parallels-between-the-Lives-of-Christ-and-the-B%C3%A1b-revised.pdf&ved=2ahUKEwjax_ay_sTZAhUDEbwKHaX_Dx8QFjADegQICBAB&usg=AOvVaw37vEpMHLSi76B3LtXyMrTP
The above document was compiled to show this in detail. It is a PDF from the Phoenix Bahai Community.
Justice is a gift we all can use.
Regads Tony