All city high schools are assigned by choice/match. I think with middle schools it varies. https://www.baltimorecityschools.org/high-school-choice
Anecdote: A parent from our kid's preschool once told me they had a conversation with the principal of one of our neighborhood elementary schools and upon inquiring about the relatively early start time the principal told him, or at least insinuated, that the start time was designed to dissuade cross-town parents from selecting the school, effectively gaming the lottery system to favor neighborhood families.