This is a false choice. Urban agriculture doesn't need to mean indoor agriculture / relying on excessive electricity / complex equipment etc.
Cities can be plenty dense while still having enough space for people to grow potatoes for themselves and their neighbors.