Nagata’s conjecture for a square or nearly-square number of points