US stocks end mixed as energy sector rides surge in oil prices while tech stocks fall

Energy stocks started the second quarter of 2023 in rally mode while tech stocks softened after their hot quarterly performance.