I'm studying general equilibrium theory, and in the study guide I came across a utility function of the type $U=\max\{x,y\}$, which I'm not that familiar with. I study mainly from two books: Intermediate microeconomics by Varian and Nicholson's Microeconomic Theory and couldn't find any details about the nature of this kind of utility function in either.
My teachers over the semesters have mentioned some details about it as a curious fact, so I know the choice of the consumer is driven by the relative price of the goods, in this case x and y, so he'll choose to consume the cheaper good, and if the relative prices are equal he'll be indifferent towards both. Also I know the indifference curves have the shape of an inverted L.
What is not clear to me is how is it related to the Perfect Substitutes utility function since both seem extremely similar to me, but the indifference curves are very different.
Is the utility function $U=\max\{x,y\}$ a more general case?
More importantly, when the relative prices are the same, how can we illustrate consumer's choice in that inverted L indifference curve, doesn't it turn linear?