There's definitely more to ancient Egypt than we're taught. The showdown between the Pharaoh's sorcerers and God I find... telling. I think that a bunch of slavers were probably more deserving of such a demonstration of the lengths that He was prepared to go to than anybody is now. I also think it's hard to call someone evil who starts out by freeing slaves, and whose commandants mostly seem to be related to a person's well being, physical or psychological.
God wasn't freeing the slaves because they were slaves. God was freeing them because they were God's people, and to show Pharaoh who is boss.
This is evidenced by the killing of firstborn,
regardless of whose firstborn it was.
4 So Moses said, “Thus says the Lord: ‘About midnight I will go out in the midst of Egypt,
5 and every firstborn in the land of Egypt shall die, from the firstborn of Pharaoh who sits on his throne,
even to the firstborn of the slave girl who is behind the handmill, and all the firstborn of the cattle.
6 There shall be a great cry throughout all the land of Egypt, such as there has never been, nor ever will be again.
7 But not a dog shall growl against any of the people of Israel, either man or beast, that you may know that the Lord makes a distinction between Egypt and Israel.’
8 And all these your servants shall come down to me and bow down to me, saying, ‘Get out, you and all the people who follow you.’ And after that I will go out.” And he went out from Pharaoh in hot anger.
9 Then the Lord said to Moses, “Pharaoh will not listen to you, that my wonders may be multiplied in the land of Egypt.”
10 Moses and Aaron did all these wonders before Pharaoh, and the Lord hardened Pharaoh's heart, and he did not let the people of Israel go out of his land.
The Lord said to Moses and Aaron in the land of Egypt,
2 “This month shall be for you the beginning of months. It shall be the first month of the year for you.
3 Tell all the congregation of Israel that on the tenth day of this month every man shall take a lamb according to their fathers' houses, a lamb for a household.
4 And if the household is too small for a lamb, then he and his nearest neighbor shall take according to the number of persons; according to what each can eat you shall make your count for the lamb.
5 Your lamb shall be without blemish, a male a year old. You may take it from the sheep or from the goats,
6 and you shall keep it until the fourteenth day of this month, when the whole assembly of the congregation of Israel shall kill their lambs at twilight.
7 “Then they shall take some of the blood and put it on the two doorposts and the lintel of the houses in which they eat it.
8 They shall eat the flesh that night, roasted on the fire; with unleavened bread and bitter herbs they shall eat it.
9 Do not eat any of it raw or boiled in water, but roasted, its head with its legs and its inner parts.
10 And you shall let none of it remain until the morning; anything that remains until the morning you shall burn.
11 In this manner you shall eat it: with your belt fastened, your sandals on your feet, and your staff in your hand. And you shall eat it in haste. It is the Lord's Passover.
12 For I will pass through the land of Egypt that night, and I will strike all the firstborn in the land of Egypt, both man and beast; and on all the gods of Egypt I will execute judgments: I am the Lord.
13 The blood shall be a sign for you, on the houses where you are. And when I see the blood, I will pass over you, and no plague will befall you to destroy you, when I strike the land of Egypt.