Reading Samsung's model names
Samsung runs several parallel lines and the names do not explain themselves, so here is the whole system in four lines.
Galaxy A is the value range and the number tells you the tier - A07 at the bottom, A56 near the top. Galaxy S is the flagship range, and within it Ultra means the largest screen, the largest battery and the telephoto camera. Galaxy Z Flip folds into a square for the pocket; Galaxy Z Fold opens into a small tablet. Galaxy Tab is tablets, with the S series above the A series, and FE meaning a cheaper version of a flagship.
For most people an upper A-series phone does everything an S-series phone does, more slowly and for a third of the money. The S-series earns its price on camera and on sustained performance, not on anything you notice sending a message.