Perez should just stand down and build a stronger profile in the assembly. In the end this is all just a run for governor or the Senate anyway.
Perez should do nothing of the sort. Why should it take 5 months to recount ballots? That's a scandal in itself. Additional staff should be hired, if necessary.
This recount is not even statewide, which is crap. No recount should be anything but jurisdiction-wide. Partial recounts of a candidate's favorable counties should be avoided. It treats some voters as more special than others, worthy of having their votes recounted but not others, violating equal protection.
Even if Perez builds up enough of a margin, there's nothing stopping Yee from calling her own recount of Bay Area counties. The process will only drag on and on and the party will just sour on Perez which would ruin any of his own prospects for advancement.