It does take more work to get to a really fast system with fully manual memory management in lean, but once you do it will have much better trust assumptions than the versus solution.
Happy to say more if you have specific questions.
if your correctness depends on arithmetical invariants, SMT will be _much_ more powerful than dependent types because you might be in for a real long compilation time if your dependently typed approach depends on naive peano natural numbers representation
Leonardo de Moura created both Z3 (automated SMT solver) and Lean (dependent type-based theorem prover) but they use totally different approaches.
IMO one needs to study both automated solver-based verification and type system tactic-based interactive theorem provers.
While Lean (dependent type system based) is getting all the attention because of mathematicians, programmers are better served starting with understanding solvers i.e. by using pre/post/invariants/asserts etc. in code. A good book to study is The Calculus of Computation : Decision Procedures with Applications to Verification by Aaron Bradley and Zohar Manna.