This is an exaggeration, in fact democratically, Tanzania and Kenya are two countries miles apart.
It's not a secret that today's Tanzania is a dictatorship whereby only one person runs the show and he is not keen to entertain any dissenting voice unlike Kenya where power is devolving in between different institutions.
Needless to say, going by the current trend of affairs it's not possible to draw a parallel between the two guys. Kenyatta is, arguably, a democrat when Magufuli bears all the hallmarks of a brutal despot.