First, make the bialy topping. Heat the oil in a large sauté pan over medium heat. Add the onions and salt and cook, stirring often, for about 15 minutes, until deeply golden and jammy. Add the garlic and cook 1 minute more. Stir in the poppy seeds and pepper and set aside.
Peel the potatoes and shred them on the large holes of a box grater into a bowl of ice water. Grate the onion in too. Let sit for 10 minutes.
Lift out the potatoes, squeezing the moisture back into the bowl. Dry them very well with a clean kitchen towel or cheesecloth. Let the potato water sit for 5 to 10 minutes so the starch settles, then carefully pour off the water and keep the white starch at the bottom.
In a large bowl, mix the potatoes with the eggs, flour or matzo meal, salt and the reserved starch.
Set a cooling rack over paper towels. Heat about ¼ inch of oil in a large (cast iron) skillet over medium-high heat.
Scoop heaping ¼ cup portions of the potato mixture into the oil (they should sizzle!) and flatten slightly. Fry until golden brown, about 3 minutes, then flip and fry another 2 minutes. Don't crowd the pan.
Drain on the rack and sprinkle with salt. Repeat with the remaining batter, drying it again if liquid collects in the bowl.
Use a spoon to make a little divot in the center of each latke, like the dimple in a bialy. Fill it with a spoonful of the bialy topping. If you like, top with a little cream cheese, a piece of lox and scallions. Serve right away.